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. Image for the cookie policy date

dublicated list in drop down list when use data manager in grid but when use out side grid it is not dublicated

duplicated list in drop down list when use data manager in grid but when use out side grid it is not duplicateddropdown list.png

code is 

     function complete(args) {

           grid = this;

               $("#" + this._id + "ItemID").ejDropDownList({

                dataSource: dataManagerInvenotory_tkt_to_rtn,

                fields: { text: ("ItemDescription"), value: "ID" },

                enableFilterSearch: true,

                enableSorting: true,

                showRoundedCorner: true,

            });



2 Replies

PS Pon Selva Jeganathan Syncfusion Team October 31, 2022 12:28 PM

Hi Murtada


Thanks for contacting syncfusion forum.


Query: dublicated list in drop down list when use data manager in grid but when use out side grid it is not dublicated


We are working on this issue with high priority. We need some time to validate the issue and we will update further details by November 2nd, 2022. Until then we value your patience.


Regards,

Pon selva







PS Pon Selva Jeganathan Syncfusion Team November 2, 2022 11:45 AM

Hi Murtada


Query: dublicated list in drop down list when use data manager in grid but when use out side grid it is not duplicated


To avoid this issue, we suggest you get the data source from server side using Ajax Call and bind the data source for dropdownList using the datasource property of ejDropDownList.


kindly follow the below code snippet,


//Client side

$("#Grid").ejGrid({

dataSource: data,

                allowPaging: true,

                …

                columns: [

                      ….

               ],

                actionComplete: function (args) {

                    if (args.requestType == "beginedit" || args.requestType == "add") {

 

 var grid = this._id; 

            $.ajax({ 

                url: '/Home/EmployeeID', 

                type: 'GET', 

                success: function (data1) { 

                    $("#" + grid + "CustomerID").ejDropDownList({

                      dataSource: data1, //assign the dataSource obtained from serverSide 

                      fields: { text: "text", value: "value" },

                                     enableFilterSearch: true,

                                  

                                     enableSorting: true,

                                    showRoundedCorner: true,

                } 

            }); 

 

 

 

          



Please refer to the below sample,

https://www.syncfusion.com/downloads/support/directtrac/general/ze/WebApplication1_-_EJ1_CRUD1635526808


And already discussed "How to render the dropdown with a data source fetched by remote service while editing" in our knowledge base documentation.


Please refer to the below KB documentation,

https://www.syncfusion.com/kb/6816/how-to-render-the-dropdown-with-datasource-fetched-by-remote-service-while-editing


Regards,

Pon selva




Loader.
Live Chat Icon For mobile
Up arrow icon