I understand the Databound event for the MVC grid is supposed to fire after the grid is fully rendered. But I'm seeing the databound event fires, then my read action fires, after which the databound event doesn't fire again. Below is my code for the grid. Anyone have an idea of what I'm doing wrong? Thanks in advance.
@(Html.Kendo().Grid<
dynamic
>()
.Name("StandardTable_" + Model.InstanceKey)
.Resizable(resize => resize.Columns(true))
.Pageable(pageable => pageable
.Input(true)
.Refresh(true)
.PageSizes(true)
.ButtonCount(5)
.Enabled(true)
.Numeric(false)
).ColumnMenu()
.Sortable(s => s.SortMode(GridSortMode.MultipleColumn).AllowUnsort(true))
.Filterable()
.Groupable()
.Reorderable(reorder => reorder.Columns(true))
.Scrollable(e => e.Enabled(true).Virtual(true).Height("auto"))
.EnableCustomBinding(true)
.Events(e => e
.DataBound("pan.dashboardsetup.gridDatabound(" + Model.dashFeed?.FeedKey + "," + Model.InstanceKey + ")")
.ColumnMenuInit("pan.dashDatapart.menuInit")
)
.DataSource(d => d
.Ajax()
.PageSize(pageSize)
.Read(read => read
.Action("StandardTableRead", "Feeds").Data("pan.dashDatapart.StandardGridRead(" + Model.dashFeed?.FeedKey + "," + Model.InstanceKey + ")")
)
)
)