Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prasad on Jul 25, 2008 11:39
open dhtmlx forum
grid focus

Hi Support,

I have used mygrid.clearSelection(); to lost the focus of grid.
Now I need to check where grid is having focus or not. How to check that?

Thanks.
Answer posted by Support on Jul 28, 2008 02:10
You can get the selected state as
    grid.getSelectedRowId()

This function will return selected row ID , or empty value if not any row selected in grid.

( actually selection and focus are different entities , focus can be checked by using private var  grid.isActive )