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
2732
master/detail grids with knockoutjs: incorrect binding
posted

Hello,

We have been trying to create a master grid, in which you can select a row and the second grid fills with the correct data.

However we have been unable to get this to work, it seems the binding for the second grid does not work correctly. 

When we use a simple table with data-bind=foreach... the binding works correctly.

Please see the following example: http://jsfiddle.net/5xwehaxd/3/

Steps to reproduce:

  1. Scroll down to 'Second Grid (Broken)' and 'Second Grid (Working)' and note the Last Name value (Maria Anders...).
  2. Scroll back to 'First Grid'
  3. Select a different customer
  4. Scroll down to 'Second Grid (Broken)'. Note that the Last Name value has NOT changed.
  5. Scroll down to 'Second Grid (Working)'. Note that the Last Name has changed, working as intended.

Is there something we are doing wrong?

Thank you

Parents
No Data
Reply
  • 5513
    Offline posted

    Hello Michael,

    You are not doing anything wrong. The grid's KO wrapper is just incapable of handling such a change due to the way it's designed. I believe there is a way to fix it though and I logged this as a bug with #217471 in our internal tracking system. A support case is created on your behalf with number CAS-171203-M2Q4M1, so that you can be notified when the bug is fixed. 

    You can find your active cases under Account - Support Activity in our website. Select your ticket and go to Development Issues tab to view the status of related bugs.

    Please, let me know if you have any other questions or concerns!

    Best regards,

    Stamen Stoychev

Children
No Data