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.

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 )