This question is locked. New answers and comments are not allowed.
I use Grid with Client Selection (ASP.NET MVC) and in my application, one of the lines is checked automatically once the page is loaded, based on an ID received through the Model. But I could not find a way to run the event "OnRowSelected" to this line, when the page finishes loading. I tried "onload", "OnRowDatabound", "OnInit" and had no success. I just need to know how to run an event for a row when the page finishes loading. I very much appreciate any help! Below is one of my attempts:
(The jQueryFunction is the same function)
| <%= Html.Telerik().Grid(Model) |
| .Name("Name") |
| .Columns(columns => |
| { |
| columns.Bound(c => c.MyId).Title("ID").Width(130); |
| }) |
| .DataBinding(dataBinding => dataBinding.Ajax().Select("Action", "Controller")) |
| .Pageable() |
| .Selectable() |
| .RowAction(row => row.Selected = row.DataItem.MyId.Equals(Model.MyId)) |
| .ClientEvents(events => events.OnRowSelected("jQueryFunction").OnLoad("jQueryFunction")) |
| %> |