Mar 10, 2014, 5:15 PM
[CLOSED] Adding MVC Dropdown in Grid Panel
I want to use basic dropdownlist control in the Grid Panel.
Due to some limitation of Ext.net SelectBox control, I have to go this way.
Thanks,
Rajiv Dutt
List<SelectListItem> listItems= new List<SelectListItem>();
listItems.Add(new SelectListItem
{
Text = "One",
Value = "1"
});
listItems.Add(new SelectListItem
{
Text = "Two",
Value = "2",
Selected = true
});
listItems.Add(new SelectListItem
{
Text = "Three",
Value = "3"
});
}
@Html.DropDownList("listItems",listItems);
How can I put this control in one of the column of the Grid Panel and what are the pros & cons of this approach.Due to some limitation of Ext.net SelectBox control, I have to go this way.
Thanks,
Rajiv Dutt
Last edited by Daniil; Mar 14, 2014 at 8:26 AM.
Reason: [CLOSED]