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
495
Error occurring randomly on KO rebinds?
posted

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

Parents
No Data
Reply
  • 495
    posted

    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.

Children