After the second or third time I reapply the KO bindings (after updating the observable object), the ig.grid will not update and I'll get this error:
Uncaught TypeError: Cannot read property 'ID' of undefined
(ID is referring to the primaryKey that I have set in my initialization)
This only happens sporadically. I'm wondering if anyone has an pointers or where I might look to find out why.
Thanks,
Alex
I don't know if this will be helpful, but I'm completely replacing the datasource on this rebinds. So I notice that sometimes the new information comes in and it already looks dirty. I'm looking for options that allow me to "wipe the slate" essentially on every rebind, but I'm having some trouble.
Hello Alex,
It has been some time since you posted but in case you still need assistance, I will be happy to help.
I would suggest you to have a look at the igGrid Knockout Integration sample here: http://ko.infragistics.com/products/jquery/sample/grid/grid-knockoutjs-integration.
Also, make sure that after rebinding the grid you call the dataBind method, so the new data source is actually applied: $("#grid1").igGrid("dataBind");
Hope this helps.