This question is locked. New answers and comments are not allowed.
Hi,
I'm trying to use the CascadeTo element, but I'm having some troubles to use it:
I'm having two combo box:
Here are my questions/problems:
I'm trying to use the CascadeTo element, but I'm having some troubles to use it:
I'm having two combo box:
@(Html.Telerik().ComboBoxFor(model => model.IdPublication) .Name("IdPublication") .BindTo(new SelectList(Model.AvailablePublications, "Id", "Name")) .HighlightFirstMatch(true) .Filterable(filtering => filtering.FilterMode(AutoCompleteFilterMode.Contains)) .Placeholder(LocalizationResources.Views.Composer.BaseInfoForm.SelectPublicationPlaceHolder) .CascadeTo("IdFormat") .SelectedIndex(0) .Enable(true) )@(Html.Telerik().ComboBoxFor(model => model.IdFormat) .Name("IdFormat") .HighlightFirstMatch(true) .Filterable(filtering => filtering.FilterMode(AutoCompleteFilterMode.Contains)) .Placeholder(LocalizationResources.Views.Composer.BaseInfoForm.SelectFormatPlaceHolder) .SelectedIndex(0) .DataBinding(binding => binding.Ajax().Select("_GetFormats", "Home", new { area="Composer"})) .Enable(false) )Here are my questions/problems:
- The second combo-box is loading when I'm selecting something in the first one, OK, but why does it calls also the _GetFormats methods when I'm typping something in the combo-box? I want to load only once the list of format, and then use it.
- When I select something in the first combo-box, the second combobox loads and have the value/Text "0" selected? I don't know where it comes from? If I display the drop down list, I don't have this value in it
- By default, I'm seeing my place holders, but how can I make that they are not selectable?
- What is the option to don't accept a written text, that isn't in the list?(a dropdown list with the contains search of the combo box)