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

[Solved] Select a row with the client API?

1 Answer 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Julien
Top achievements
Rank 1
Julien asked on 15 Mar 2012, 04:20 PM
Hi, 

I've a javascript code in which I need to select one row of the Grid generated by telerik. But I can't find how to do from the client side.

I searched here: http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-grid-client-api-and-events.html#ClientMethods 

but I didn't found anything. (I see we can receive an even when a row is selected but not select a row).

Thank you for the help

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 Mar 2012, 12:36 PM
Hello Julien,

Grid row selection is purely visual, so in order to do it with Javascript, simply append a t-state-selected CSS class to the respective <tr> element.

Regards,
Dimo
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
Grid
Asked by
Julien
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or