1

I have a grid (master/detail) with keys bound. I'd like to have the first row in the master grid automatically selected when the page starts.

I used setSelection in the GridComplete event and can get the row selected. However, the up/down arrows (and the detail grid) do not function until the user actually clicks on a row with the mouse.

Does anyone have any ideas about how to get a row selected programatically so that the grid operates as if the user had clicked the row?

Thanks,

-Bill

1 Answer 1

0

The problem is that the grid does not have focus, so keyboard commands are not routed to it when the grid is initially displayed. You can work around this by explicitly calling focus after setting your initial selection:

jQuery("#myGrid").setSelection(myID).focus();
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.