We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

DropDown cascading - dependent field does not set its value on form load

Thread ID:

Created:

Updated:

Platform:

Replies:

124125 May 18,2016 11:02 AM May 20,2016 06:15 AM ASP.NET MVC 3
loading
Tags: DropDownList
Tom Frajer
Asked On May 18, 2016 11:02 AM

I created this based on documentation tutorial here: http://help.syncfusion.com/aspnetmvc/dropdownlist/functionalities#cascading
Cascading works as expected. Selection in first dropdown (nl_id_cis__car_make) determines what is available to select in second dropdown (nl_id_cis__car_model).
Problem is, that upon form load, I have populated value in first dropdown (for example "Ford"), but in second dropdown, there is nothing preselected (there should be "Focus").

If I remove cascading, both fields are corectly populated with data.

        <div class="col-md-2">
            <div class="form-group">
                <label class="control-label requiredField" for="nl_id_cis__car_make">Značka</label>
                @Html.EJ().DropDownList("nl_id_cis__car_make").Datasource(Model.carMakes).DropDownListFields(Df => Df.Text("s_name").Value("nl_id_parent").ID("nl_id_parent")).Value(Model.ticker.nl_id_cis__car_make.ToString()).Width("100%").CascadeTo("nl_id_cis__car_model")
            </div>
        </div>
        <div class="col-md-1">
            <div class="form-group">
                <label class="control-label requiredField" for="nl_id_cis__car_model">Model</label>
                @Html.EJ().DropDownList("nl_id_cis__car_model").Datasource(Model.carModels).DropDownListFields(Df => Df.Text("s_name").Value("nl_id")).Value(Model.ticker.nl_id_cis__car_model.ToString()).Width("100%")
            </div>
        </div>

Prince Oliver [Syncfusion]
Replied On May 19, 2016 06:49 AM

Hi Tom,                       

We were able to reproduce the problem and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account.   
Please log on to our support website to check for further updates  
   
Please let me know if you have any questions.  

Regards,  
Prince 


Tom Frajer
Replied On May 19, 2016 08:59 AM

Perfect :) A hope this will be fixed soon as this functionality is absolutely critical for my application.

Do you have any workaround? Using javascript to set field value etc.

Prince Oliver [Syncfusion]
Replied On May 20, 2016 06:15 AM

Hi Tom, 

Please follow-up the support incident which is related to this forum for further queries and post your updates in the incident. 

Regards, 
Prince 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;