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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ejDropDownList cascade to other ejDropDownList ist not working on Internet explorer

Thread ID:

Created:

Updated:

Platform:

Replies:

147269 Sep 4,2019 05:44 PM UTC Sep 6,2019 12:17 AM UTC JavaScript - EJ 2 1
loading
Tags: DropDownList
Marvin
Asked On September 4, 2019 05:44 PM UTC

I have 3 dropdown lists which are cascade. 
I fill the next dropdown list with datasource in change event. 
That works in firefox, chrome and safari perfect.

In Internet explorer it isen't working.


  $("#CategoryList").ejDropDownList({
                dataSource: dataManagerCategory,
                fields: { value: "test", text: "Name" },
                change: "GetTypeList",
                validationRules: { required: true },
                validationMessage: { required: 'is required.' },
            });

            $("#TypeList").ejDropDownList({
                dataSource: dataManagerType,
                fields: { value: "test", text: "Name" },
                change: "GetSpecList",
                enabled: true,
                validationRules: { required: true },
                validationMessage: { required: 'is required.' },
            });

            $("#SpecList").ejDropDownList({
                dataSource: dataManagerMaterial,
                fields: { value: "test", text: "Name" },
                enabled: true,
                change: "GenerateODNo",
                validationRules: { required: true },
                validationMessage: { required: 'is required.' },
            });



 function GetTypeList(e) {
            $("#Barcode").ejMaskEdit("clear");
          var dataManagerType = dataManagerType = ej.DataManager({ url: "/api/ProductType1/GetById/" + e.value, adaptor: new ej.WebApiAdaptor() });
          $("#TypeList").ejDropDownList({
              dataSource: dataManagerType,
              fields: { value: "test", text: "Name" },
              enabled: true
          });
            $("#Barcode").ejMaskEdit({ value: CategoryList.value + TypeList.value + SpecList.value + ODNumber });
        }

        function GetSpecList(e) {

            if (TypeList.value == 002) {

                document.getElementById("Barcode").style.display = 'none';
            }

            else {
                $("#Barcode").ejMaskEdit("clear");
                var dataManagerSpec = dataManagerSpec = ej.DataManager({ url: "/api/ProductMaterial/GetById/" + e.value, adaptor: new ej.WebApiAdaptor() });
                $("#SpecList").ejDropDownList({
                    dataSource: dataManagerSpec,
                    fields: { value: "test", text: "Name" },
                    enabled: true
                });
                $("#Barcode").ejMaskEdit({ value: CategoryList.value + TypeList.value + SpecList.value + ODNumber });
            }

        }

Narayanasamy Panneer Selvam [Syncfusion]
Replied On September 6, 2019 12:17 AM UTC

Hi Marvin, 
 
Greetings from Syncfusion support. 
 
We have validated your query. Also checked your code and it seems you have manually binding data for DropDownList through change events. Since we are not aware of your web api method, kindly ensure whether the proper dataSource value that matches “e.value” is returned from Controller. We suspect that in change event, the  arguments may got differ for Internet Explorer.  Also, we suggest to try with “*cascadeTo*” property so that DropDownLists will be cascaded based on the matching value in dataSources without change event. While passing query for matching records during cascading, you can pass the query through “cascade” event which will be triggered during cascade. Please refer to the below given UG for example on multi-level cascading. 
 
 
Regards,  
Narayanasamy P.  


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.

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

Live Chat Icon For mobile
Live Chat Icon