Hi guys!
I need to make multi row update of appropriate column in one action and would like to know how can I update the cell value...
I tried with grid.model.setDatum(cellIdx,rowIdx, Value) and I see no differences.
Thank you
David
Hi guys!
I need to make multi row update of appropriate column in one action and would like to know how can I update the cell value...
I tried with grid.model.setDatum(cellIdx,rowIdx, Value) and I see no differences.
Thank you
David
I believe: 1.
I believe:
1. setDatum(newValue,rowIndex,columnIndex)<<==use that parameter order.
2. You will need to use the model field index, not the cell index, unless your cells are in the same order (and number) as your model.
3. If you are using dojo from the last two weeks, you may need to use a write store, e.g., ItemFileWriteStore, not a read store, if you want your change to survive a sort.
Thank you frankf... Huhh...
Thank you frankf...
Huhh... Then for point 3.) assume I cannot upgrade test example test_edit_mysql.html to work with multi row, to remember what was changed on grid (added, updated, deleted) and than apply changes to server?? I would like to submit the changes after pressing submit button, when I am over with changes, not after update-ing every field.
Thanx again,
David
I really don't know. You
I really don't know. You will have to try it. My testing (may be faulty) is that setDatum changes to an ItemFileReadStore are not retained in the store or in the model after a sort. Other stores may behave differently. ItemFileWriteStore does retain the setDatum changes after a sort. There may be a way to do setValue (maybe on the store directly) to change a read store's store, so look at that, if you see a problem with setDatum.