I am trying to use the DHTMLX Window with attached grid in it. I am creating the window on lost focus of one text field. It is just like a popup window and user need to select one option from the grid (one row) to proceed. When user selects a row the window needs to get closed.
Everything seems to work fine. The only issue is the created popup window does not have the focus. I need to use mouse button to get the focus on the window. How can I get the automatic focus on the window once it is generated?
you can try to use the following approach to make grid active and select default row (teh 1st row in the example):
Still the issue is not resolved. Actually the window and grid is active and the he first row is selected also.
The problem is the focus is not on the window or grid.
to set focus in grid cell you can use selectCell method:
Where cellIndex is index of editable cell that should get focus:
dhtmlx.com/dhxdocs/doku.php? … selectcell