Hi Pratheep,
Thanks for contacting Syncfusion support.
We analyzed the reported query and the sample that you shared.
From your sample, we found that in
actionComplete event of the grid, you have set the incorrect value to the ejDropdownList control corresponding to the Manufacturer country which is the cause of the issue. Please refer to the below code example.
[Incorrect snippet]
function complete(args) {
if (args.requestType == "beginedit") {
$("#ShipCountry").ejDropDownList("setSelectedValue", args.row.children().eq(4).text());
$("#ManufacturerCountry").ejDropDownList("setSelectedValue", args.row.children().eq(4).text());//have set the same value for both the dropdownlist
}
}
}
[Correct snippet]
function complete(args) {
if (args.requestType == "beginedit") {
$("#ShipCountry").ejDropDownList("setSelectedValue", args.row.children().eq(4).text());
$("#ManufacturerCountry").ejDropDownList("setSelectedValue", args.row.children().eq(5).text());//the index specified with eq indicates the index of the corresponding column in the grid
}
}
}
|
We have modified the sample shared by you, which can be downloaded from the below location.
Sample Link:
http://www.syncfusion.com/downloads/support/forum/120150/ze/DialogEditing_modified1480364768
Regards
Ragavee U S