JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › DropDown Editor › Reply To: DropDown Editor
October 24, 2023 at 6:28 pm
#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/