BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
<ejs-grid #normalgrid [dataSource]="data" height="350" allowPaging="true" [pageSettings]="pageSettings">
<e-columns>
<e-column field="OrderID" headerText="Order ID" width="120" textAlign="Right" isPrimaryKey="true">
</e-column>
<e-column field="CustomerID" headerText="Customer ID" width="150">
<ng-template let-data #template>
<ejs-dropdownlist id="CustomerID" name="CustomerID" [dataSource]="customerIDDistinctData"
[fields]="fields" value={{data.CustomerID}} popupHeight="300px">
</ejs-dropdownlist>
</ng-template>
</e-column>
<e-column field="CustomerName" headerText="Customer Name" width="150">
</e-column>
<e-column field="OrderDate" headerText="Order Date" width="130" format="yMd" textAlign="Right"
[format]="formatoptions"></e-column>
<e-column field="Freight" headerText="Freight" width="120" format="C2" textAlign="Right"></e-column>
<e-column field="ShipCountry" headerText="Ship Country" width="150" textAlign="left" type="string">
</e-column>
</e-columns>
</ejs-grid> |
Hi Team,
We are facing issue with e-js drop down during the edit operation, the values are not getting retained in the drop down. This is the code: Pls suggest what changes required here.
<e-column field='programName' headerText='Program Name' width='200' editType='dropdownedit' [edit]='programNameParams' defaultValue=""></e-column>
Hi ,
We have reviewed your query regarding the dropdownlist not populated with data in the dropdownedit. By default, when the column editType is set as dropdownedit, it will populate the data automatically. We suspect that you are providing custom data to the dropdownlist using column.edit property. We have discussed this topic in our UG documentation on providing the custom data to the dropdown list.
this.editparams = { params: { dataSource: new DataManager(this.country), fields: { text: 'countryName', value: 'countryName' }, query: new Query(), // need to add the query property actionComplete: () => false, }, };
|
Sample: https://stackblitz.com/edit/angular-decadj?file=src%2Fapp.component.ts,src%2Fapp.component.html
Documentation: https://helpej2.syncfusion.com/angular/documentation/grid/editing/edit-types#provide-custom-data-source-for-dropdownlist-component
If this didn't meet resolve the issue, please provide the code implementation you have made in the programNameParams (column.edit property). Also ensure whether you are using custom dropdownlist using column.edit property. Please provide the pictorial image of the issue you are facing.
Regards,
Dineshnarasimman M