getUserData after updateFromXML

Hello, we have dhtmlxGrid v.2.0.
When we used grid.clearAll and grid.loadXML, then grid.getUserData(’’, ‘rowsNum’) was working. Later we desided to use grid.updateFromXML and in the event “onXLE” called the grid.getUserData(’’, ‘rowsNum’), but it returns an empty string.

Xml with all data:

<rows total_count="16" pos="0"> <userdata name="rowsNum">16</userdata> <row id="12" style="border: 1px solid gray">

grid.updateFromXML is not purposed for data loading, it just updates values of cells in the grid
If you need to use global userdata you need to use grid.load