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

[Solved] Grid row selection Manually

1 Answer 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
srikanth
Top achievements
Rank 1
srikanth asked on 21 Feb 2011, 11:10 PM
HI,

I am trying to set the default grid row selection to first row on client side databound event. I am not able to set this. Can you please let me know how to do this.

thanks,
Srikanth.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 22 Feb 2011, 08:26 AM
Hello srikanth,

 You can try this:

function onRowDataBound(e) {
   if (e.row.rowIndex == 0) {
       $(e.row).addClass("t-state-selected");
   }
}

Regards,
Atanas Korchev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
srikanth
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or