This is a migrated thread and some comments may be shown as answers.

Select Previous/Next by Using Button ClientSide In RadGrid

4 Answers 117 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chandan
Top achievements
Rank 1
Chandan asked on 11 Jul 2012, 10:39 AM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 16 Jul 2012, 10:20 AM
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.
0
Chandan
Top achievements
Rank 1
answered on 21 Jul 2012, 06:24 AM
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
0
Quam
Top achievements
Rank 1
answered on 10 Jan 2013, 02:56 PM
Hi,
I have the same problem. When changing page, the new select row is not preserved.
Thanks,
0
Princy
Top achievements
Rank 2
answered on 11 Jan 2013, 04:40 AM
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
Tags
General Discussions
Asked by
Chandan
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Chandan
Top achievements
Rank 1
Quam
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or