Dropdown type when cell-editing columns?

Hello team,

We need to have a dropdown in the column types, is this example broken in the docs or does this work ?

We want to have a dropdown control when editing the column's cells.

regards

3 Replies 1 reply marked as answer

MS Monisha Sivanthilingam Syncfusion Team May 11, 2021 07:40 AM UTC

Hi Sean, 
 
Greetings from Syncfusion support. 
 
We have prepared a sample using drop down control in the TaskName column using the edit params. The following code snippets demonstrate the solution. 
 
App.vue 
<e-columns> 
        <e-column field="TaskID"></e-column> 
        <e-column 
          field="TaskName" 
          :editType="dropdownedit" 
          :edit="dpParams" 
        ></e-column> 
        <e-column field="StartDate"></e-column> 
        <e-column field="Duration"></e-column> 
        <e-column field="Progress"></e-column> 
      </e-columns> 
 
 
 
dpParams: { 
        create: () => { 
          elem = document.createElement("input"); 
          return elem; 
        }, 
        read: () => { 
          return dropdownlistObj.text; 
        }, 
        destroy: () => { 
          dropdownlistObj.destroy(); 
        }, 
        write: () => { 
          var ganttChart = document.getElementById("gantt").ej2_instances[0]; 
          dropdownlistObj = new DropDownList({ 
            dataSource: ganttChart.treeGrid.grid.dataSource, 
            fields: { value: "TaskName" }, 
            floatLabelType: "Auto", 
          }); 
          dropdownlistObj.appendTo(elem); 
        }, 
      } 
 
 
Please find the sample from the below link. 
 
 
We will fix the documentation and refresh it online on May 26, 2021. 
 
We appreciate your patience until then. 
 
Regards, 
Monisha. 


Marked as answer

SE Sean May 12, 2021 03:06 PM UTC

Thank you Monisha, we needed to understand that this was functionality was available and it was working, before starting our development on it. 

Thank you for clarifying and providing an example for us. 


PN Preethi Nesakkan Gnanadurai Syncfusion Team May 13, 2021 12:02 PM UTC

Hi Sean, 
  
Most welcome. 
  
Regards, 
Preethi 


Loader.
Up arrow icon