#109067
ivanpeevski
Participant

Hi FerrisChamp,

 

Here is an example of a GridColumn object with a dropDownList editor and custom dataSource:

new GridColumn()
{
DataField = “Product”,
Label = “Product Name”,
Template = “dropDownList”,
Editor = new Dictionary<string, object>()
{
{“template”, “dropDownList” },
{“dataSource”, new string[] {“Black Tea”, “Green Tea”,
“Caffe Espresso”, “Doubleshot Espresso”,
“Caffe Latte”, “White Chocolate Mocha”,
“Caramel Latte”, “Caffe Americano”,
“Cappuccino”, “Espresso Truffle”,
“Espresso con Panna”, “Peppermint Mocha Twist”} },
}
}

 

Best Regards,
Ivan Peevski
Smart UI Team
https://www.htmlelements.com/