I want to call Radgrid SelectedIndexChange event on arrow key press
ie I want to display selected row value in corresponding textbox.
as i navigate to another row , the text in textbox should change.
Thanks
Kishor Dange
1 Answer, 1 is accepted
0
Konstantin Dikov
Telerik team
answered on 22 Aug 2014, 07:13 AM
Hi Kishor,
Initiating a postback with keyboard navigation is not a recommended approach and I will suggest that you use client-side logic for this (if it could still meet your requirements).
For your convenience, following is a simple example demonstrating how to handle the client-side OnRowSelected event of the grid and using the selected data item getDataKeyValue() method to retrieve the value and set it to a TextBox control:
Additionally, if you decide to handle this on server-side you will have to handle again the client-side OnRowSelected event and using setTimeout() function with some delay, fire custom command through the MasterTableView, which will force the SelectedIndexChange to fire:
Nevertheless, as I have mentioned, the above will break the keyboard navigation functionality, so it is not recommended approach.
Hope this helps.
Regards,
Konstantin Dikov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.