App.vue
create: () => {
countryElem = document.createElement("input");
return countryElem;
},
read: () => {
return countryObj.value;
},
destroy: () => {
countryObj.destroy();
},
write: () => {
countryObj = new DropDownList({
dataSource: this.countriesList,
fields: { value: "CountryCode", text: "CountryName" },
value: args.rowData[args.column.field], // need to set value peroperty to show the row data in the dropdown
placeholder: "Select a country",
});
countryObj.appendTo(countryElem);
}
}
|
<e-column field='CountryCode1' type='checkbox' width=30 :visible='false'></e-column>
<e-column field='CountryCode' :headerText='localizedArray.Lbl.countryCode' :isPrimaryKey="true" editType= 'dropdownedit' :edit='countryParams' ></e-column>
<e-column field='DistrictCode' :headerText='localizedArray.Lbl.districtCode' :isPrimaryKey="true" :validationRules='districtCodeRules' ></e-column>
<e-column field='AreaCode' :headerText='localizedArray.Lbl.areaCode' :isPrimaryKey="true" :validationRules='areaCodeRules'></e-column>
<e-column field='AreaDescription' :headerText='localizedArray.Lbl.areaDescTitle' :validationRules='areaDescRules' ></e-column>
<e-column field='AreaChineseDescription' :headerText='localizedArray.Lbl.areaChiDescTitle' ></e-column>
|