Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sergei on Mar 17, 2008 03:52
open dhtmlx forum
Selected Row

Hello,
I am unable to read the selected row id in the grid component
I am using mygrid.getSelectedRowId() but it doesn t work

How can i read selected row id?

Thank you
Sergei
Answer posted by Support on Mar 17, 2008 04:18
Actually the
    mygrid.getSelectedRowId() (  or    mygrid.getSelectedId() )
is the correct way to get ID of currently selected row(s)

If no row selected in grid, function will return null value.
Answer posted by christian on Aug 13, 2008 12:28
Hello I seem to have the same problem! I am using grid dhtmlx 1.6.

When I execute mygrid.getSelectedId() as well as mygrid.getSelectedRowId(), I receive NULL as the result.

I can't figure out what I am doing wrong and how to solve the problem!

I am therefore asking for help

Best regards!
Answer posted by Christian on Aug 13, 2008 13:26
Problem solved!

I accidentally initialised the grid twice. After removing the second entry mygrid.init() everything worked!

Sorry for spamming this post!