Question

When a row has been selected, I am successfully getting selected row:

var currentRow = sender.get_behaviors().get_selection().get_selectedRowsResolved()[0];

Is there a javascript function to get the parent WebDataGrid for that row? Something like this:

var grid = currentRow.get_parentGrid();

Thanks

Was it helpful?

Solution 2

I found the solution, its very simple:

currentRow.get_grid()

It gives you the parent grid.

Thanks Everyone!

OTHER TIPS

With:

var grid = currentRow.get_parentGrid();

you will access the parent row object, but to access the parent grid you need to call:

var grid = currentRow.get_parentGrid().get_grid();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top