I want to reset the value of docId as null.
Can you please show me how to do this?
console.dir(dijit.byId("grid"));
rowIndex = e.rowIndex;
var item = this.getItem(rowIndex);
var docId = this.store.getValue(item, "ID");
I want to reset the value of docId as null.
Can you please show me how to do this?
console.dir(dijit.byId("grid"));
rowIndex = e.rowIndex;
var item = this.getItem(rowIndex);
var docId = this.store.getValue(item, "ID");
Use unsetAttribute, like this:
rowIndex = e.rowIndex;
var item = this.getItem(rowIndex);
this.store.unsetAttribute(item, "ID");
and don't forget to refresh the grid:
this.update();