Opened 13 years ago
Closed 13 years ago
#7012 closed defect (duplicate)
dojox.grid.DataGrid grid.removeSelectedRows() didn't work
Reported by: | guest | Owned by: | Bryan Forbes |
---|---|---|---|
Priority: | high | Milestone: | 1.2 |
Component: | DojoX Grid | Version: | 1.1.1 |
Keywords: | DataGrid | Cc: | |
Blocked By: | Blocking: |
Description
it throw out a Error:this._assert is not a Function
I change the dojo.forEach of removeSelectedRows,It works!
But when I remove the row from the top(maybe twice or third),the row still there,and the value change to all "..."
change from:
removeSelectedRows: function(){ // summary: // Remove the selected rows from the grid. if(this._canEdit){ this.edit.apply(); var items = this.selection.getSelected(); if(items.length){ dojo.forEach(items, this.store.deleteItem); this.selection.clear(); } } }
to:
removeSelectedRows: function(){ // summary: // Remove the selected rows from the grid. if(this._canEdit){ this.edit.apply(); var items = this.selection.getSelected(); if(items.length){ dojo.forEach(items, this.store.deleteItem,this.store); this.selection.clear(); } } }
Note: See
TracTickets for help on using
tickets.
I found the solution:
chang to this,It is Ok!