Problem in getting selected Row ID value in dhtmlxgrid

Hi All,
I am using jsarray to load the dhtmlxgrid in my page. I am having problem to get the selected row id.When i use getSelectedRowId(), it returns null value.
My sample array to load dhtmlx grid
Array
(
[headers] => Id,Region,Is Active
[ids] => Id,Region,Is_active
[types] => ro,ro,ro
[widths] => 40,230,100
[aligns] => center,left,left
[filters] => #text_filter,#text_filter,#text_filter
[sortings] => str,str,str
[colors] => ,
[data] => Array
(
[0] => Array
(
[0] => 1
[1] => asia
[2] => 1
)
[1] => Array
(
[0] => 2
[1] => americas
[2] => 1
)
[2] => Array
(
[0] => 3
[1] => europe
[2] => 1
)
)
)

Do i need to set the row id manually?

Anybody please give me the solution.

Thanks in advance.

Unfortunately the problem cannot be reconstructed locally.
The following code works well:
dhtmlx.com/docs/products/dhtmlxG … array.html
If the row id is not specified in the data, it will be generated automatically in the dhtmlxGrid.

If the problem still occurs for you please, provide with a complete demo or share with a demo link, where the problem can be reconstructed.

How to specify row id?

Thanks in advance…

Unfortunately in case of loading the data from the jsArray it is not available to define the row ID.