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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





124125 May 18,2016 03:02 PM UTC May 20,2016 10:15 AM UTC ASP.NET MVC 3
Tags: DropDownList
Tom Frajer
Asked On May 18, 2016 03:02 PM UTC

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 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%")

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

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.  


Tom Frajer
Replied On May 19, 2016 12:59 PM UTC

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 10:15 AM UTC

Hi Tom, 

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



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon