With the old UltraWebGrid, we can update a cell in the grid like this:
cell.getRow(i).getCellFromKey( 'Included').setValue(false, false); The second false parameter stopped the change event from refiring. With the new grid, I do: row.get_cellByColumnKey( 'Included').set_value(false, false); The second parameter is not being honored. As soon as this line executes, it breaks out of my code and goes back to the top of the CellValueChanging event. How can I stop the new WebDataGrid from firing change events when I update grid cell values "behind the scenes" in my Javascript. We only want the event to fire when the user actually updates something in the grid. Thanks
cell.getRow(i).getCellFromKey(
'Included').setValue(false, false);
The second false parameter stopped the change event from refiring.
With the new grid, I do:
row.get_cellByColumnKey( 'Included').set_value(false, false); The second parameter is not being honored. As soon as this line executes, it breaks out of my code and goes back to the top of the CellValueChanging event. How can I stop the new WebDataGrid from firing change events when I update grid cell values "behind the scenes" in my Javascript. We only want the event to fire when the user actually updates something in the grid. Thanks
row.get_cellByColumnKey(
'Included').set_value(false, false);
The second parameter is not being honored. As soon as this line executes, it breaks out of my code and goes back to the top of the CellValueChanging event.
How can I stop the new WebDataGrid from firing change events when I update grid cell values "behind the scenes" in my Javascript. We only want the event to fire when the user actually updates something in the grid.
Thanks
Hi qz55p6.
Here you can find the classes needed:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebDataGrid~Infragistics.Web.UI_namespace.html
set_value() is function that has only one parameter and this is the new value that needs to be set. That`s why using it in the way you mention throws an exception.
I hope it helps.
Looking forward to hear from you.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://www.infragistics.com/support
The second parameter is actually the text to display in the cell (or for checkboxes, the check state (0, 1, 2)). You should simply have an if statement to only set the value of the other cell if the cell that is changing is NOT from that same column. That way you do not get an inifinite loop.
regards,
David Young