This is a migrated thread and some comments may be shown as answers.

Cascading comboboxes in grid popup editor

5 Answers 106 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Shahar
Top achievements
Rank 1
Shahar asked on 09 Jul 2013, 12:11 PM
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?

5 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 11 Jul 2013, 01:44 PM
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!
0
Shahar
Top achievements
Rank 1
answered on 15 Jul 2013, 05:33 AM
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
0
Alexander Valchev
Telerik team
answered on 17 Jul 2013, 09:11 AM
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!
0
Shahar
Top achievements
Rank 1
answered on 17 Jul 2013, 12:29 PM
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
 
0
Petur Subev
Telerik team
answered on 19 Jul 2013, 12:00 PM
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!
Tags
ComboBox
Asked by
Shahar
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Shahar
Top achievements
Rank 1
Petur Subev
Telerik team
Share this question
or