Hi Steve,
Sorry for the delay.
To freeze the column headers at the top while moving thehorizontal scrollbar, we need to remove the "e-headercontent" class from the grid header.
In below sample we achieved this usingdataBoundevent of ejGrid. This event will be triggered when the grid is bound with data during initial rendering.
Find the code example and sample:
@(Html.EJ().Grid("FlatGrid") .Datasource((IEnumerable)ViewBag.datasource) --------------------------------------- .ClientSideEvents(eve => eve.DataBound("dataBound")) .Columns(col => { -------------------------- ) |
Note: when we freeze the column headers while moving the horizontal scrollbar, the misalignment will occur.
Refer to the Help document for the dataBound event.
https://help.syncfusion.com/api/js/ejgrid#events:databound
Regards,
Prasanna Kumar N.S.V