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

Cascading ComboBox does not work - Urgent

5 Answers 274 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 2
Shawn asked on 12 Aug 2012, 04:26 AM
The attached sample project is based on your sample of submitting a grid in a form post along with other elements.  I've changed it to use a Popup edit mode to add records to the grid, and have specified a custom editor template for this popup.  It contains two comboboxes, the idea being that to add a product to the order, the user selects a category, and then the products combobox should be populated with the products linked to that category.  But the second combobox remains disabled and it's Read method never fires. (I've taken the code for the cascading from the Kendo demo for Cascading Comboboxes.)  Please advise why this does not work.

5 Answers, 1 is accepted

Sort by
0
G_P
Top achievements
Rank 1
answered on 27 Aug 2012, 05:21 PM
I just ran into the same exact problem 10 minutes ago, and am wondering if you ever determined a fix or workaround?

Thanks!
0
Shawn
Top achievements
Rank 2
answered on 27 Aug 2012, 06:10 PM
Nope. Still awaiting some kind of response from Telerik.
0
G_P
Top achievements
Rank 1
answered on 27 Aug 2012, 06:25 PM
I know what you mean. I did have better luck with a support ticket on a different issue, have you opened one for this issue?
0
Shawn
Top achievements
Rank 2
answered on 28 Aug 2012, 02:53 AM
Nope. Sadly I've run out of trial support tickets.  Now trying to squeeze a purchase into my budget.
0
Mike
Top achievements
Rank 1
answered on 28 Aug 2012, 12:35 PM
I opened a ticket as we are having the same issue.

It looks like the fix for your example has to do with the categories ComboBox declaration, specifically the DataValueField, like so:

    @(Html.Kendo().ComboBox()
          .Name("categories")
          .Placeholder("Select category...")
          .DataTextField("CatName")
          .DataValueField("CategoryId")  <------- This should be .DataValueField("CategoryID")
          .DataSource(source => {
            source.Read(read => {
                read.Action("GetCascadeCategories", "Home");
            });
          })
    )

I should add that this wasn't the issue for our example, it appears that the 'parent' combobox has to be before the 'child' combobox.
Tags
ComboBox
Asked by
Shawn
Top achievements
Rank 2
Answers by
G_P
Top achievements
Rank 1
Shawn
Top achievements
Rank 2
Mike
Top achievements
Rank 1
Share this question
or