How to Take focus from ListGrid Rows when not required

Hi,

On selecting a row in a list grid the record is colored to indicate the focus on the particular row. I have a requirement such that on clicking anywhere other than the records ( like list grid Header or empty spaces with in the grid or borders) the last selected row should lose its focus. How can i manually over ride this?

You can install a focusChanged() handler on the ListGrid body via grid.bodyProperties(), and call deselectAll() on the grid itself from there.

Hi,

I tried doing that but not getting the desired effect. Any ways can you please tell me how to deselectAllRecords in a listgrid when the listgrid as a whole loses focus. That is when the user clicks anywhere outside the listgrid.

Thank you

That approach is already working for others. Code harder :slight_smile: