Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jul 03, 2008 08:32
open dhtmlx forum
focus after alert

Iam using the grid v 1.5 and i have a validation in place for the third column that it doesnot allow numbers. so when an error occurs iam throwing an alert to the user. But once he clicks ok i want the fous to be back in same cell?? How can i do this?
Answer posted by Stanislav on Jul 05, 2008 05:36
In which moment alert shown? If you are using onEditCell event for it - you will need to switch the cell back to edit mode.
If you are using some custom DOM logic, and editor not closed yet - you can move focus by
    grid.editor.obj.focus();