Cascading comboboxes in grid popup editor

6 posts, 0 answers
  1. Shahar
    Shahar avatar
    12 posts
    Member since:
    Jul 2010

    Posted 09 Jul 2013 Link to this post

    I have a grid that is configured for a Model, and records are edited/added by a popup editor that displays a custom template that contains cascading comboboxes.  
    It works beautifully for adding a new record.
    However, when editing an existing record,  the main combobox is loaded but the cascade combobox is not.
    It happens because the script that gets the parameters for the Action gets the value from the main combobox (that hasn't been loaded) 

    How to solve it?
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 11 Jul 2013 Link to this post

    Hi Shachar,

    I am afraid that the provided information is not sufficient enough in order to determine where exactly the problem comes from. Is it possible for you to prepare a small but runnable project with mock data that isolates the issue? In this way I will be able to examine your configuration in details and assist you further.
    Thank you in advance for the cooperation and understanding.

    Regards,
    Alexander Valchev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Shahar
    Shahar avatar
    12 posts
    Member since:
    Jul 2010

    Posted 15 Jul 2013 Link to this post

    Hi Alex,
    I attached a demo project that display the problem.
    Please note that when you try to update rows 2 or 3 the Sub Combobox in the popup editor is not loaded at all.
    Thanks
  5. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 17 Jul 2013 Link to this post

    Hello Shachar,

    First of all let me apologize for the late reply.
    I managed to run your project, however the problems which you described cannot be reproduced:
    when editing an existing record,  the main combobox is loaded but the cascade combobox is not.
    when you try to update rows 2 or 3 the Sub Combobox in the popup editor is not loaded at all.

    On my side the same behaviour does not occur. Could you please check the screencast and let me know what I am missing?
    Thank you in advance.

    Regards,
    Alexander Valchev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Shahar
    Shahar avatar
    12 posts
    Member since:
    Jul 2010

    Posted 17 Jul 2013 Link to this post

    Hi Alexander
    I checked the screencast and the problem dose occur.
    The problem is when you try to update 2 and 3 row the sub combobox is not loaded with "Sub 2" or "Sub 3" .
    When you try to update the first row the sub combobox is loaded with "Sub 1" (This is what I want for 2 and 3).
    Thanks
     
  7. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 19 Jul 2013 Link to this post

    Hello Shachar,

    If you have set both of the widget to AutoBind(false) and you do not specify their names (so they can be automatically generated) the cascading should work fine.

    Check the attached project. I hope it helps.

    Regards,
    Petur Subev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready