ejs grid column dropdownlist values not showing

While using syncfusion ejs grid data is not showing in dropdownlist.

Please find attached code.


Attachment: newruleset_84f9e015.zip

1 Reply

RR Rajapandi Ravi Syncfusion Team March 30, 2022 01:28 PM UTC

Hi Supriya,


Greetings from Syncfusion support


We have checked your shared information and we could see that the dropdown value was not showing in your application. We have checked your shared code example and we could see that in that write() method of edit template you are not defining value property; it was the cause of the problem. To resolve the problem, we suggest you define the value property in the dropdown. Please refer to the below code example for more information.


 

write: (args) => {

 

          this.dropObj = new DropDownList({

 

           

            dataSource: this.settings.columns.jobTitle.editor.config.list,

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

           value: args.rowData.jobTitle,

           change: () => {

           

             let tempQuery: Query = new Query().where('jobId', 'jobTitle', this.dropObj.value);

           

         },

            placeholder: 'Select a Job',

            floatLabelType: 'Never',

          });

 

          this.dropObj.appendTo(this.elem);

          this.isAdd = false;

 

        }

 


Regards,

Rajapandi R


Loader.
Up arrow icon