Set data in listGrid

Hi All,

I am using a listGrid in which whenever i click on certain button(outside the grid) and call the method - gridId.setData(data) it works fine and data appears in my grid.

But now i want to call a method on editorExit event of one of the field of the grid and in this method i call - gridId.setData(data). After this line of code i get stuck in an infinite loop. And nothing gets set to my grid.

Can someone tell me how to set the data on editorExit event of the same grid whose data i want to set, as this is the requirement .

Thnx..

This sounds like grossly misused APIs and there’s probably a simpler way, but you can most likely continue with your current approach by using Timer.setTimeout() to wait a moment before calling setData().