I want to add items to dropdown menu using codebehind. the list contains names which i want to display in the drop down.
Printable View
I want to add items to dropdown menu using codebehind. the list contains names which i want to display in the drop down.
Hello @csaini!
It depends on which component you are using to draw the dropdown menu on your page. Do you have a sample on how you are trying to write the dropdown menu?
Usually, you'd add the entry to the store using theAdd()
method. One example is seen here: Dynamic items in Menu.