-1

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");
mhu
  • 17,720
  • 10
  • 62
  • 93

1 Answers1

0

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();
mhu
  • 17,720
  • 10
  • 62
  • 93