Select Previous/Next by Using Button ClientSide In RadGrid

5 posts, 1 answers
  1. Chandan
    Chandan avatar
    3 posts
    Member since:
    Jul 2012

    Posted 11 Jul 2012 Link to this post

    Hi All,

    I have a radgrid and also i have a Next button above the grid.

    I wanted to show next row selected from current row on next button click through javascript
    (i do not want to postback the page while doing all this activity).

    if no any row is selected previously than 1st row should get selected

    Please help me it's very urgent.

    Thanks in advance

    Chandan
  2. Answer
    Eyup
    Admin
    Eyup avatar
    4072 posts

    Posted 16 Jul 2012 Link to this post

    Hello Chandan,

    I have created a sample RadGrid web site where I implemented the described scenario. Please check out the attached application and try to use the demonstrated approach in your own project.

    Greetings,
    Eyup
    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.
  3. Chandan
    Chandan avatar
    3 posts
    Member since:
    Jul 2012

    Posted 21 Jul 2012 Link to this post

    Hi,
    First i would like to thanks.

    This code work but when pageing is there on grid than it does not go to next page.

    Can u please help me for this, its urgent.

    Thanks 
    Chandan
  4. Quam
    Quam avatar
    3 posts
    Member since:
    Oct 2012

    Posted 10 Jan 2013 Link to this post

    Hi,
    I have the same problem. When changing page, the new select row is not preserved.
    Thanks,
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 10 Jan 2013 Link to this post

    Hi,

    RadGrid loses its current selection when the data is sorted, a new group or filter is added, or when the current page changes. In order to persist client-side selection across these events, intercept the OnRowSelected and OnRowDeselected client events of the grid to save/remove the key value for the selected/deselected item respectively. Check the following help documentation which explains more about this.
    Persisting the Selected Rows Client-side on Sorting/Paging/Filtering/Grouping

    Thanks,
    Princy
Back to Top