This question is locked. New answers and comments are not allowed.
I would like to modify the client selection demo (http://demos.telerik.com/aspnet-mvc-beta/grid/selectionclientside?theme=default) so that whenever the users pages or sorts the grid, the first row of the Customers grid is selected and the Orders grid rebinds its data, exactly as if the user had selected the first row.
I've created an "onDataBound" client function and assigned it to the OnDataBound client event of the Customers grid. I've verified that onDataBound gets invoked whenever the user pages or sorts the grid.
Now, within onDataBound I need to do two things: (1) select the first row of the Customers grid; and, (2) rebind the Orders grid exactly as if the onRowSelected function had been called (ideally, I'd simply like to invoke the onRowSelected function passing it the appropriate parameter).
This seems very straightforward, but I'm new to JavaScript and can't figure it out. Can someone point me in the right direction? Thanks.
I've created an "onDataBound" client function and assigned it to the OnDataBound client event of the Customers grid. I've verified that onDataBound gets invoked whenever the user pages or sorts the grid.
Now, within onDataBound I need to do two things: (1) select the first row of the Customers grid; and, (2) rebind the Orders grid exactly as if the onRowSelected function had been called (ideally, I'd simply like to invoke the onRowSelected function passing it the appropriate parameter).
This seems very straightforward, but I'm new to JavaScript and can't figure it out. Can someone point me in the right direction? Thanks.