set_currentPageIndex call bind function again

2 posts, 0 answers
  1. Jagz W
    Jagz W avatar
    17 posts
    Member since:
    Mar 2012

    Posted 06 Dec 2012 Link to this post


    I am binding RADGRID in client side with paging on search button click. it is working fine with paging. but when i bind grid again on search button click, the page index not reset..

    So, i tried to reset the current page index using set_currentPageIndex(0) property.. But it recalls the bind function again and all the data does wrong.


    Even i tried to rebind function but that too not worked.

     masterGrd.set_currentPageIndex(0);<br><span style="font-size: 13.63636302947998px;">masterGrd</span>.rebind();
  2. Vasil
    Vasil avatar
    1604 posts

    Posted 11 Dec 2012 Link to this post

    Hello Jagwinder,

    When you filter using your search button, if you bind such way:
    var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
    the grid will go to the first page, like it is shown in this demo:
    Examine the code and tell us what is different in your case.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top