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
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!