title: Kendo UI add DropDownList into Grid (MVC)
body: <p>I'm Binding to a Grid class (UserId,FirstName,LastName,Choice).
  Does anybody know how to put this code in a column (Choice) in a Kendo Grid in MVC 4:</p>
  <pre><code>@(Html.Kendo().DropDownList()
        .Name(&quot;Test&quot;)
        .DataTextField(&quot;Text&quot;)
        .DataValueField(&quot;Value&quot;)
        .Events(e =&gt; e.Change(&quot;change&quot;))
        .BindTo(new List&lt;SelectListItem&gt;()
        {
            new SelectListItem()
            {
                Text = &quot;Option1&quot;,
                Value = &quot;1&quot;
            },
            new SelectListItem()
            {
                Text = &quot;Option2&quot;,
                Value = &quot;2&quot;
            }
        }))
  &lt;script&gt;
      function change() {
          var value = $(&quot;#Choice&quot;).val();
      }
  &lt;/script&gt;
  </code></pre>
  <p>....</p>
  <pre><code>columns.Bound(p=&gt; p.FirsName);
  columns.Bound(p =&gt; p.LastName);
  //How to Bind Choice???
  </code></pre>
  <p>I also need a text (&quot;Option1&quot;, or &quot;Option2&quot;) in BackEnd Code.
  Any solutions?</p>
  <p><strong>Edited</strong></p>
  <p>I did exactly what they said:</p>
  <p>View:</p>
  <pre><code> columns.Bound(p =&gt; p.Choice).ClientTemplate(&quot;#=Choice#&quot;);
  </code></pre>
  <p>Controller:</p>
  <pre><code>public ActionResult Index()
      {
          PopulateCategories();
          return View();
      }
      
  </code></pre>
  <p>.....</p>
  <pre><code> private void PopulateCategories()
          {
              var dataContext = new TestDB();
              var categories = dataContext.Peoples
                  .Select(c =&gt; new People()
                  {
                      ChoiceID = c.ChoiceID,
                      Choice = c.Choice
                  })
                  .OrderBy(e =&gt; e.Choice);
              ViewData[&quot;categories&quot;] = categories;
              ViewData[&quot;defaultCategory&quot;] = categories.First();
          }       
      
  </code></pre>
  <p>But this doesn't work...</p>