This is a migrated thread and some comments may be shown as answers.

[Solved] set focus on add new record button

0 Answers 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hetal
Top achievements
Rank 1
Hetal asked on 13 Aug 2012, 04:39 AM
Hello,

I want to set focus on 'add new record' of grid after the data bound event is finished. So, in onDataBound event, at the end I write as follows. But it is not working.

$('.t-grid-add').focus();

What is going wrong in this? Also, I noted that this works initially when grid data is first time loaded. 
But in the edit mode, after the record is updated and grid data bound is fired, that time it
does not set the focus.

Note: grid is set to KeyboardNavigation()

Tags
Grid
Asked by
Hetal
Top achievements
Rank 1
Share this question
or