Cascading ComboBox does not work - Urgent

6 posts, 0 answers
  1. Shawn
    Shawn avatar
    49 posts
    Member since:
    Jul 2011

    Posted 11 Aug 2012 Link to this post

    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.
  2. G_P
    G_P avatar
    9 posts
    Member since:
    Jul 2012

    Posted 27 Aug 2012 Link to this post

    I just ran into the same exact problem 10 minutes ago, and am wondering if you ever determined a fix or workaround?

    Thanks!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Shawn
    Shawn avatar
    49 posts
    Member since:
    Jul 2011

    Posted 27 Aug 2012 Link to this post

    Nope. Still awaiting some kind of response from Telerik.
  5. G_P
    G_P avatar
    9 posts
    Member since:
    Jul 2012

    Posted 27 Aug 2012 Link to this post

    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?
  6. Shawn
    Shawn avatar
    49 posts
    Member since:
    Jul 2011

    Posted 27 Aug 2012 Link to this post

    Nope. Sadly I've run out of trial support tickets.  Now trying to squeeze a purchase into my budget.
  7. Mike
    Mike  avatar
    10 posts
    Member since:
    Aug 2012

    Posted 28 Aug 2012 Link to this post

    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.
Back to Top
UI for ASP.NET MVC is VS 2017 Ready