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
285
Removing an item from an observable array bound to igGrid does not commit.
posted

I have an observable array that is bound to an igGrid.  When removing item from the array the grid does a strike through of the removed item.  I have autocommit set to true so I would expect the grid to actually remove the item from the UI as well.

Digging into this a little further I found that the delete transaction was not committing and remained in the pendingtransactions array.  I tried to manually commit the transaction and rebind the grid to the array.  When making the call to commit I received an exception 'this._super' is undefined in the file infragistics.datasource.knockout.js in the _deleteRow function.  My file version is (12.2.20122.2056)  I have highlighted the line of code that throws the exception below.  Has anyone else eperienced/fixed this issue?

Thanks,

Chad

 _deleteRow: function (d) {            

var c = this.settings.primaryKey,                

b = this.kods;            

b = ko.isObservable(b) ? b() : b;                

if (this.settings.responseDataKey && b[this.settings.responseDataKey]) {                    

b = b[this.settings.responseDataKey]                 }                

if (ko.isObservable(b)) {                    

if (!this._koUpdate) {                        

b.remove(function (e) {                            

return (ko.isObservable(e[c]) ? e[c]() : e[c]) === d                         })                     } else

{                        

this._koUpdate = false                    

}                

} else {                    

this._super(d)                

}        

}

Parents Reply Children
No Data