Note that there are some explanatory texts on larger screens.

plurals
  1. POCascading DropDown gracefully catch error
    primarykey
    data
    text
    <p>I have 5 cascading drop downs on my page. I'd like them to <strong>try</strong> cascade, but if it doesn't cascade - gracefully stop trying or erroring-out. I would also like all of the comboboxes to be enabled, rather than be disabled until the previous combobox is filled.</p> <p>I've tried to .Enable(true) on the enabled fluent API, but the dropdowns are still disabled. Any idea how I can go about doing this?</p> <pre><code> &lt;div class="span5"&gt; &lt;div class="control-group"&gt; @Html.Label("Product Types", new { @class = "control-label" }) &lt;div class="controls"&gt; @( Html.Telerik().ComboBox() .Name("drpProductTypes") .BindTo(new SelectList(ViewBag.drpProductTypes)) .Placeholder("Select Category...") .CascadeTo("drpClass1").Enable(true) ) &lt;/div&gt; &lt;div class="fix"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="control-group"&gt; @Html.Label("Class 1", new { @class = "control-label" }) &lt;div class="controls"&gt; @( Html.Telerik().ComboBox() .Name("drpClass1") .DataBinding(binding =&gt; binding.Ajax().Select("_GetDropDownClassOne", "List")) .Placeholder("Select Class 1...") .CascadeTo("drpClass2").Enable(true) ) &lt;/div&gt; &lt;div class="fix"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="control-group"&gt; @Html.Label("Class 2", new { @class = "control-label" }) &lt;div class="controls"&gt; @( Html.Telerik().ComboBox() .Name("drpClass2") .DataBinding(binding =&gt; binding.Ajax().Select("_GetDropDownClassTwo", "List")) .Placeholder("Select Class 2...") .CascadeTo("drpClass3").Enable(true) ) &lt;/div&gt; &lt;div class="fix"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="control-group"&gt; @Html.Label("Class 3", new { @class = "control-label" }) &lt;div class="controls"&gt; @( Html.Telerik().ComboBox() .Name("drpClass3") .DataBinding(binding =&gt; binding.Ajax().Select("_GetDropDownClassThree", "List")) .Placeholder("Select Class 3...") .CascadeTo("drpClass4").Enable(true) ) &lt;/div&gt; &lt;div class="fix"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="control-group"&gt; @Html.Label("Class 4", new { @class = "control-label" }) &lt;div class="controls"&gt; @( Html.Telerik().ComboBox() .Name("drpClass4") .DataBinding(binding =&gt; binding.Ajax().Select("_GetDropDownClassFour", "List")) .Placeholder("Select Class 4...").Enable(true) ) &lt;/div&gt; &lt;div class="fix"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload