I have a RadGrid setup and everything on it works great except for my Numeric Pager. I placed my pager in my PagerTemplate like so:
And then in my code behind, here is how I set it up:
The numeric pager is getting setup properly but when I click on a page number, it does a very fast postback and then the numeric pager disappears completely. I feel like I am missing a step where I should be binding and event. All the Google and forum searches I have done haven't turned anything up. The only thing I found was including this JavaScript:
But still nothing. I've even tried setting up an event handler for OnPageIndexChanged but that didn't work either. Any help would be appreciated.
<asp:Panel runat="server" ID="NumericPagerPlaceHolder" />And then in my code behind, here is how I set it up:
protected void HandleOnItemDataBound(object sender, GridItemEventArgs e) { if (e.Item is GridPagerItem) { var gridPager = e.Item as GridPagerItem; var numericPagerControl = gridPager.GetNumericPager(); var placeHolder = gridPager.FindControl("NumericPagerPlaceHolder"); placeHolder.Controls.Add(numericPagerControl); } }The numeric pager is getting setup properly but when I click on a page number, it does a very fast postback and then the numeric pager disappears completely. I feel like I am missing a step where I should be binding and event. All the Google and forum searches I have done haven't turned anything up. The only thing I found was including this JavaScript:
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> <script type="text/javascript"> var tableView = null; function pageLoad(sender, args) { tableView = $find("<%= TransactionsGrid.ClientID %>").get_masterTableView(); } function changePage(argument) { tableView.page(argument); } </script> </telerik:RadScriptBlock>But still nothing. I've even tried setting up an event handler for OnPageIndexChanged but that didn't work either. Any help would be appreciated.