AUTHOR: Marin Bratanov
DATE POSTED: May 28, 2018
On Radgrid with client side binding - if you filter the grid and find no records, then remove the filter to have data back, the paging is not recreated.
Repro steps:
Actual: the pager is gone
Expected: the pager is there
Visualization of the problem:
Add a handler to the OnCommand client-side event of the grid and show the pager:
<script>
function
OnCommandHandler(sender, args) {
if
(args.get_commandName() ==
"Filter"
) {
$telerik.$(sender.get_element()).find(
".rgPager"
).show();
}
}</script>
<telerik:RadGrid RenderMode=
"Lightweight"
ID=
"RadGrid1"
runat=
"server"
>
<ClientSettings>
<ClientEvents OnCommand=
"OnCommandHandler"
/>
</ClientSettings>
</telerik:RadGrid>
ClientDataSource binding and batch editing: page is reset to 1 after deleting a record
Resources Buy Try