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

Enable cascading comboboxes when editing existing record

5 Answers 157 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 2
Shawn asked on 18 Sep 2012, 11:32 AM
I have a grid that is configured for Ajax editing, and records are edited/added by means of a popup that displays a custom template that contains a number of cascading comboboxes.  It works beautifully for adding a new record.
However, when editing an existing record, all comboboxes have the right value from the bound record being edited, but they are all disabled (except the first one, of course).  So if a user wants to change the value in the last combobox, they must first go through the processes of selecting a different value in each of the other comoboxes, starting at the root one. This is of course cumbersome.  How can I make it that when editing an existing record, all comboboxes are enabled so that the user can go straight to the last one in order to change its value.
Here's how my comboboxes are defined (this is one of 9 cascading combos):
@(Html.Kendo().ComboBoxFor(m => m.Tier2)
        .Placeholder("--Select a Tier 2--")
        .DataSource(ds => {
            ds.Read(rd => {
                rd.Action("GetTier2", "Budget").Data("dataForTier2");
            })
            .ServerFiltering(true);
        })
        .DataTextField("TierName")
        .DataValueField("TierCode")
        .Enable(true)
        .AutoBind(false)
        .CascadeFrom("Tier1")
  )


Thanks for a great product.

5 Answers, 1 is accepted

Sort by
0
BobDev
Top achievements
Rank 1
answered on 25 Oct 2012, 11:01 AM
I agree. This same situation would occur if the parent combobox is pre-populated for a new record. I cannot get the child combobox out of disabled mode unless I manually change the parent value.
0
Brian LeBaron
Top achievements
Rank 1
answered on 28 Nov 2012, 07:17 AM
Any luck with this? I'm running in to the same exact problem. Seems like a common thing to do...
0
Shawn
Top achievements
Rank 2
answered on 28 Nov 2012, 10:48 AM
This was resolved for me in the 2012 Q3 release.
0
John
Top achievements
Rank 1
answered on 11 Dec 2012, 03:03 PM
We are  using  Q2 release of Kendo

What needs to be done to use this particular Q3 fix Combobox behaviour in our project

Is it enough to refer latest  kendo.combobox.min.js file?

Thanks
Jaffar

Please copy me when you reply to this post sharfuj@chesterton.com
0
Sebastian
Telerik team
answered on 12 Dec 2012, 10:28 AM
Hello Chris,

Yes, it should be sufficient to reference the latest combobox scripts in case the recent update addresses the issue discussed in this thread.

Kind regards,
Sebastian
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ComboBox
Asked by
Shawn
Top achievements
Rank 2
Answers by
BobDev
Top achievements
Rank 1
Brian LeBaron
Top achievements
Rank 1
Shawn
Top achievements
Rank 2
John
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or