[CLOSED] Adding MVC Dropdown in Grid Panel

  1. #1

    [CLOSED] Adding MVC Dropdown in Grid Panel

    I want to use basic dropdownlist control in the Grid Panel.

            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]
  2. #2
    Hi @RajivDutt,

    Do you want to use it as a Column's Editor? Unfortunately, there is no way.

Similar Threads

  1. Replies: 1
    Last Post: Jun 26, 2013, 5:15 AM
  2. [CLOSED] DropDown Field Collapsing in Grid Panel Header Item
    By BATCCA in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 24, 2013, 3:38 PM
  3. [CLOSED] Dynamically Adding rows to Grid Panel
    By hemantpatil in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 22, 2013, 6:58 AM
  4. Problem with adding columns to a grid panel
    By msavery in forum 1.x Help
    Replies: 0
    Last Post: Sep 19, 2012, 8:26 PM
  5. Adding Dropdown box to TemplateColumn of GridPanel
    By Mrityunjay in forum 2.x Help
    Replies: 0
    Last Post: Jun 19, 2012, 9:41 AM

Posting Permissions