Telerik Forums RSShttp://www.telerik.com/urn:uuid:29ec6b35-d46f-40d7-8d2e-631c8cc24120http://www.telerik.com/forums/permalink/NWvsKW_U10CNLmMcjMJBIARadGrid and paging resetHi Mir<br />
<br />
Apparently setting CurrentPageIndex
to 0 and calling DataBind
or ReBind
after is not enough sometimes. You need to enable ViewState too.<br />
<br />
Hope this helps<br />
Yosiefurn:uuid:72a55f01-a43d-4b0e-b588-d6bed17be356http://www.telerik.com/forums/permalink/AV-lcj2kDku1iNa-0XvjVgRadGrid and paging resetHi Mir,<br />
That help me also, to reset page Index in &nbsp;Telerik Grid When Enable Pagging and Add new record after click Next Page&nbsp;<br />
Thanks<br />urn:uuid:0fd274ac-c71f-4424-85f9-14cda459a348http://www.telerik.com/forums/permalink/rHTSDx_HJESF-RTNpFmjSARadGrid and paging resetHi,<br />
<br />
I have the exact scenario as the original poster. I have a grid on the page, when the user click on the Search button that is when I call CurrentPageIndex = 0 and call rebind() afterwords. Still my grid remembers the previous index number. <br />
<br />
1. When the user lands the page for the first time, I set the Grid's visiblity to false.<br />
2. When the user clicks for the first time, I click on the Grid's visible to true, which make it call NeedDataSource intern.<br />
3. For the subsequent clicks on the search button, I call the following code.<br />
&nbsp;&nbsp;&nbsp;&nbsp; RadGrid1.CurrentPageIndex = 0;<br />
&nbsp;&nbsp;&nbsp;&nbsp; RadGrid1.Rebind(); // This calls the NeedDataSource, where I see current PageIndex is the old one.<br />
<br />
Please let me know how you guys have fixed this issue.<br />
<br />
Regards,<br />
Hariurn:uuid:ee771eea-2674-45ae-8e46-db9d66a0ca5dhttp://www.telerik.com/forums/permalink/6h537nQmrkWORtudZqDKXQRadGrid and paging resetThanks, Chris, that's exactly what&nbsp;I was looking for!urn:uuid:81b07c37-69dc-4858-ac4f-f619b99c694dhttp://www.telerik.com/forums/permalink/N3ywgdxpWEisT_YZuZxpTQRadGrid and paging resetTo anyone else who has this problem, the property you're looking for is CurrentPageIndex = 0 right before calling Rebind().urn:uuid:8d067bdf-1f8f-4f5a-af2e-3a6c95f0e880http://www.telerik.com/forums/permalink/33sGjY8fWk-vLjpslfDogARadGrid and paging resetHello,<br />
<br />
You need to reset the page index to 0 and call the grid's Rebind() method.<br />
<br />
Best wishes,<br />
Tsvetoslav <br />
the Telerik team
<div style="font-size: 10px; padding-top: 10px;"><br />
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the <a href="http://www.telerik.com/support/pits.aspx" style="color: gray;">Telerik Public Issue Tracking</a> system and vote to affect the priority of the items. </div>urn:uuid:c14bb336-5b42-4bf7-a155-311e364904b3http://www.telerik.com/forums/permalink/NrNLwUJb90uhVTEeNkkEswRadGrid and paging resetHello.<br />
<br />
Inside an UpdatePanel, I have a "search" button and a RadGrid. The grid is programatically data-bound whenever the search button is clicked. I also have a RadAjaxManager which enables the paging (otherwise, "next" and "back" always return the first set of results). The problem is, if I select say the second page of a set of results, then click "search" to create a different set of results, the grid shows the correct results but the paging is still on page 2, and I'd like it to start on page 1.<br />
<br />
I have tried to reset the paging index to 1 on my search button onclick, to no avail. I cannot set it on the databind bit, since that is called whenever a new page is selected.<br />
<br />
Any help appreciated.<br />
<br />
Bérénice