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

Need to capture row index changed event on Grid.

1 Answer 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Harshit
Top achievements
Rank 1
Harshit asked on 30 Sep 2011, 07:36 PM
I have a radgrid with all columns at template columns and grid is in editmode all the time. 
I need to capture row index changed event for each row so whenever user navigates from one row through other
I can validate existing row data before going to new row.
When I click through controls, onActiveRowChanged or onRowSelecting does not seem fire. How can I do that. Is there any client event to validate row
or something else like that.

Here is my client event markup on the grid.








   <ClientSettings Selecting-AllowRowSelect="true" KeyboardNavigationSettings-AllowActiveRowCycle="true">        <ClientEvents OnActiveRowChanged="RowChanged" OnRowSelected="RowChanged" />    </ClientSettings>










1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 05 Oct 2011, 02:17 PM
Hello Harshit,

The desired functionality cannot be implemented using the client-side API of the RadGrid.
In order to achieve it, you need to handle the onfocus client events of all textboxes and track the previously focused textbox. When another textbox is focused, you can check whether it is in another row and conditionally perform the validation.

I hope this helps.

Greetings,
Mira
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
Tags
Grid
Asked by
Harshit
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or