Dropdown edit data not showing

I am binding single data for Edit dropdown as per example, but the value i bind dosent show up instead it show the data from the column(it is picking unique values from Contact Type column) ). Germany is NOT showing up.
And how do i bind multiple values if i have 'Germany','India','USA'
,
import { EditSettingsModelToolbarItemsIEditCellCellEditArgsFilterSettingsModel } from '@syncfusion/ej2-angular-grids';

  public ddParamsIEditCell ;

 ngOnInit() {
    
    this.ddParams =  { params: { value: 'Germany' } }; // from example
}


//HTML

<ejs-grid [dataSource]='dataContacts' (rowSelected)='rowSelected($event)'  [allowFiltering]='true' [filterSettings]='filterOptions'   [allowPaging]='true'  [allowSorting]='true' [pageSettings]='pageOptions' [editSettings]='editSettings' [toolbar]='toolbar' >
     <e-columns>
          <e-column field='contactType' headerText='Contact Type' editType'dropdownedit' [edit]='ddParams'  width=150></e-column> 
     </e-columns>
</ejs-grid>













3 Replies

MS Manivel Sellamuthu Syncfusion Team March 30, 2020 05:51 AM UTC

Hi Vin, 

Greetings from Syncfusion support. 

Based on your query we understand that you want to provide your own dataSource to the dropdown edit and you can achieve that by providing dataSource for the dropdown through editParms. We have already discussed about this in our documentation section. Please refer the below documentation link for more information. 


The value property on the editParams is used to set the selected item on the dropdown if the value exists on its dataSource. 


Please let us know, if you have any concerns. 

Regards, 
Manivel 



AB abdelmonaim March 26, 2022 04:23 AM UTC

I have the same issue the value I bind dosent show up instead it show the data from the column(it is picking unique values)

it get fixed when I turn virtualization off


case 'dropdownlist':
x.editType = 'dropDownEdit';
x.edit = {
params: {
dataSource: ['one', 'two'],
query: new Query()
}
}
break;


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

Hi Abdelmonaim, 

We have analyzed your query with provided information and found that you have tried to set a drop-down list datasource using an edit params. We would like to inform you that you can achieve this requirement using cell edit template features of Grid, this will create a DropDownList component externally and you can customize as you want. Please refer the below documentation for more information. 
 
 
Regards, 
Rajapandi R 


Loader.
Up arrow icon