This question is locked. New answers and comments are not allowed.
Hi,
i have found out that when you select items from different pages in the current grid we can view only the items from the current page.
you can test it in the demos: http://demos.telerik.com/aspnet-mvc/grid/checkboxesserverside try to select 2 items from number of pages and you can see that the selected items are only from the last page.
this happens due to the event that fire on change page. This event doesnt send the selected items to the action.
therefore we got the last selected page.
i would like to know how can i override this event and send the selected items to the action.
some code:
Thank you
Ori
i have found out that when you select items from different pages in the current grid we can view only the items from the current page.
you can test it in the demos: http://demos.telerik.com/aspnet-mvc/grid/checkboxesserverside try to select 2 items from number of pages and you can see that the selected items are only from the last page.
this happens due to the event that fire on change page. This event doesnt send the selected items to the action.
therefore we got the last selected page.
i would like to know how can i override this event and send the selected items to the action.
some code:
public ActionResult CheckBoxesServerSide(int[] checkedRecords)on page change this one fires and the checkRecords are null.
{
checkedRecords = checkedRecords ?? new int[] { };
ViewData["checkedRecords"] = checkedRecords;
if (checkedRecords.Any())
{
ViewData["checkedOrders"] = GetOrders().Where(o => checkedRecords.Contains(o.OrderID));
}
return View(GetOrders());
}
Thank you
Ori