New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

RadGrid ClientDataSource binding: after filtering so no records are present and removing the filter there is no pager


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:

  1. go to the RadClientDataSource binding demo: Binding to Telerik ClientDataSource
  2. filter a column so there is no data in the grid
  3. remove the filter

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:

    function OnCommandHandler(sender, args) {
        if (args.get_commandName() == "Filter") {
<telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" runat="server">
        <ClientEvents OnCommand="OnCommandHandler" />

See Also

In this article