getRowsNum() NaN

Hi, we have a grid and trying to use the code:



grid.getRowsNum() but it returns NaN instead of the number of rows. can you tell us why this is happening



thanks

In which moment you calling this command, it can return such value if called before grid initialization.
Please beware that data loading is async and you need to use onXLE event or second parameter of loadXML to catch moment when data loaded and info about rows can be checked.