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

[Solved] Cascade DropDownList, how to set JSON variables

0 Answers 139 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
bbeatty
Top achievements
Rank 1
bbeatty asked on 14 Aug 2012, 05:06 PM

I have a cascade drop down where I need to set the variable name different than the name of the combo box.
I'm calling an external site and their variable name doesn't match the name of my drop down list.

ex:
@(Html.Telerik().DropDownListFor(m => m.ClaimCategoryId)
                       .Name("ClaimCategoryId")
               .DataBinding(d => d.Ajax().Select(MVC.ClaimCategory.GetAllCombo().GetRouteValueDictionary()))
                .CascadeTo("ClaimCoverageId")
               .ClientEvents(events => events.OnLoad("onAjaxDropDownLoad"))
           )
 @(Html.Telerik().DropDownListFor(m => m.ClaimCoverageId)
                  .Name("ClaimCoverageId")
         .DataBinding(b => b.WebService().Select(webServiceUrl ))
           )

The parameters for webServiceUrl is Id. 
I already have an Id in my model and cannot use this as the name of my drop down.
How do I get the cascade to send "Id" instead of "ClaimCategoryId" ??

I have a similar issue with an internal Controller 
Tags
ComboBox
Asked by
bbeatty
Top achievements
Rank 1
Share this question
or