This question is locked. New answers and comments are not allowed.
I am using the Select option within the Grid Control in order to display related records in a separate Grid Control.
It works Great!
However, if I filter the main grid or move to the next page, the selection persists even though the selected item is no longer visible.
Is there a way to clear the selection after changing page or filter?
Here is the view code for the main grid:
@model MvcApplication3.ViewModels.AdjusterIndexData
@{
Html.Telerik().Grid(Model.Adjusters)
.Name("Adjusters")
.DataKeys(dataKeys => dataKeys.Add(a => a.AdjusterID))
.Columns(columns =>
{
columns.Command(commands => commands.Select()).Title("Select").Width(10);
columns.Bound(c => c.AdjusterID).Title("Adjuster ID").Width(10);
columns.Bound(c => c.Last).Width(40);
columns.Bound(c => c.First).Width(40);
columns.Bound(c => c.Phone).Width(20); ;
})
.Pageable()
.Sortable()
.Filterable()
.Reorderable(r => r.Columns(true))
.Render();
}
TIA
Gene Stempel
It works Great!
However, if I filter the main grid or move to the next page, the selection persists even though the selected item is no longer visible.
Is there a way to clear the selection after changing page or filter?
Here is the view code for the main grid:
@model MvcApplication3.ViewModels.AdjusterIndexData
@{
Html.Telerik().Grid(Model.Adjusters)
.Name("Adjusters")
.DataKeys(dataKeys => dataKeys.Add(a => a.AdjusterID))
.Columns(columns =>
{
columns.Command(commands => commands.Select()).Title("Select").Width(10);
columns.Bound(c => c.AdjusterID).Title("Adjuster ID").Width(10);
columns.Bound(c => c.Last).Width(40);
columns.Bound(c => c.First).Width(40);
columns.Bound(c => c.Phone).Width(20); ;
})
.Pageable()
.Sortable()
.Filterable()
.Reorderable(r => r.Columns(true))
.Render();
}
TIA
Gene Stempel