Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
335
Add New row and Enter Row Editing
posted

I need to add a child row from the parent, and when its added it should automatically enter into edit mode, so that the user can enter the information and save.

All I have now is that it adds a new child row, but I can't get it to enter the edit mode automatically


Thank YOu



Function AddDetail

{

var grid = ig_controls["WebHierarchicalDataGrid1"].get_gridView();

var gridrow = grid.get_behaviors().get_activation().get_activeCell().get_row();

gridrow.get_grid().get_rows().get_row(gridrow._index).set_expanded(true);

var rowislands = gridrow.get_rowIslands();

var childGrid = rowislands[0];

if (childGrid != null) {

var CodeNum = gridrow.get_cell(1).get_value();

var row = new Array(CodeNum);

gridrow.get_rowIslands()[0].get_rows().add(row);

}

}

Parents Reply Children
No Data