Sorry for my English.
I have the following problem, I have a grid with more than 3 columns but when making it responsive they only show me two columns and the following columns are hidden, although I can only slide the rows the columns remain static I leave my example code.
<div class="mt-5" style="position:relative; min-height: 500px; width:auto">
<SfGrid TValue="RelevamientoEquipo" EnableAdaptiveUI="true" DataSource="@GridData" Height="100%" Width="100%" AllowPaging="false">
<GridPageSettings PageSize="10" />
<GridEvents OnRecordDoubleClick="OnRowDoubleClick" TValue="RelevamientoEquipo" />
<GridColumns>
<GridColumn Field=@nameof(RelevamientoEquipo.IdChamigo) HeaderText="IdChamigo" Visible="false" IsPrimaryKey="true" TextAlign="TextAlign.Justify" />
<GridColumn Field=@nameof(RelevamientoEquipo.NombreComercial) HeaderText="Nombre comercial" TextAlign="TextAlign.Justify" Width="150" />
<GridColumn Field=@nameof(RelevamientoEquipo.NombreEquipo) HeaderText="Nombre equipo" TextAlign="TextAlign.Justify" Width="150" />
<GridColumn Field=@nameof(RelevamientoEquipo.Fecha) HeaderText="Fecha" TextAlign="TextAlign.Justify" />
<GridColumn Field=@nameof(RelevamientoEquipo.Activo) HeaderText="Estado" Width="150">
<Template>
@{ var modelo = (context as RelevamientoEquipo);
if (modelo.Activo == true)
{
<div class="statustemp e-activecolor">
<span class="statustxt e-activecolor">Activo</span>
</div>
}
else
{
<div class="statustemp e-inactivecolor">
<span class="statustxt e-inactivecolor">Inactivo</span>
</div>
}
}
</Template>
</GridColumn>
<GridColumn HeaderText="Acciones" TextAlign="TextAlign.Center" Width="110">
<Template>
@{ var modelo = (context as RelevamientoEquipo);
<SfButton OnClick="@(() => OnCommandClicked(modelo, "edit"))" IconCss="e-icons e-edit" CssClass="e-flat"></SfButton>
}
</Template>
</GridColumn>
</GridColumns>
</SfGrid>
</div>
the columns stay fixed how can i make them move like the records in the table.?
Hi Javier,
Greetings from Syncfusion support.
We checked the reported scenario by creating a sample with your shared codes. But, we could not reproduce the reported problem(Grid’s header and content does not misalign when scrolling) with the sample from our side. We have attached the sample in this ticket.
We suggest you to refer the below documentation for more details on responsiveness and adaptive feature of grid.
https://blazor.syncfusion.com/documentation/datagrid/scrolling#responsive-with-parent-container
https://blazor.syncfusion.com/documentation/datagrid/adaptive-layout
Kindly refer the attached sample and check this from your side. If you are still facing difficulties then the following details would be helpful for us to proceed further.
The provided information will help us analyze the problem, and provide you a solution as early as possible.
Regards,
Renjith R