A bit of an odd one.
I've a page with a grid on that does all sorts of clever things client-side in the OnRowSelecting event.
Sadly, the client has moved the goal posts and I (under certain circumstances) need to pre-select a row in my server-side code when the page loads.
Now, I know I can rewrite all of the clever JS to perform the same tasks on the server; I just don't want to
So, is there a way of forcing the selection of a row in server-side code that will trigger the client-side OnRowSelecting event? I can, I think, actually use the OnRowSelected event instead, if that's an option.
And, yes, I know I could write a JS function to do stuff and call that using, for example, ResponseScripts.Add(), but I want to access the 'sender' and 'args' parameters that the built-in client-side event exposes.
And thoughts?
--
Stuart
I've a page with a grid on that does all sorts of clever things client-side in the OnRowSelecting event.
Sadly, the client has moved the goal posts and I (under certain circumstances) need to pre-select a row in my server-side code when the page loads.
Now, I know I can rewrite all of the clever JS to perform the same tasks on the server; I just don't want to
So, is there a way of forcing the selection of a row in server-side code that will trigger the client-side OnRowSelecting event? I can, I think, actually use the OnRowSelected event instead, if that's an option.
And, yes, I know I could write a JS function to do stuff and call that using, for example, ResponseScripts.Add(), but I want to access the 'sender' and 'args' parameters that the built-in client-side event exposes.
And thoughts?
--
Stuart