Hi,
I have 2 grids on the web page, which I put into RadAjaxManager
Both of them have detail tables and I obtain data through NeedDataSource with similar content =>
First grid works fine and when I try to go to next page or change pagesize everything works correctly because all the time I obtain GridRebindReason.PostBackEvent in NeedDataSource method.
On the other hand second grid will display data only after button click, because there is GridRebindReason.ExplicitRebind
but during paging I obtain all the time GridRebindReason.InitialLoad, which makes my grid disappear. I also tried to remove condition
so paging was suddenly working. I had 3 pages with 26 rows. I changed pagesize to 15 so I had 2 pages. But when I clicked on second page, grid somehow restored to pagesize 10 and got itself to first page.
Do you have any idea, where can be the problem and how can I make this work ?
Thanks a lot.
I have 2 grids on the web page, which I put into RadAjaxManager
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" > <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGridResults"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGridResults" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="RadGridResultsTest"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGridResultsTest" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager>Both of them have detail tables and I obtain data through NeedDataSource with similar content =>
if (e.IsFromDetailTable || e.RebindReason == GridRebindReason.InitialLoad) return; RadGridResultsTest.DataSource = GetMainData();First grid works fine and when I try to go to next page or change pagesize everything works correctly because all the time I obtain GridRebindReason.PostBackEvent in NeedDataSource method.
On the other hand second grid will display data only after button click, because there is GridRebindReason.ExplicitRebind
but during paging I obtain all the time GridRebindReason.InitialLoad, which makes my grid disappear. I also tried to remove condition
e.RebindReason == GridRebindReason.InitialLoadso paging was suddenly working. I had 3 pages with 26 rows. I changed pagesize to 15 so I had 2 pages. But when I clicked on second page, grid somehow restored to pagesize 10 and got itself to first page.
Do you have any idea, where can be the problem and how can I make this work ?
Thanks a lot.