title: Kendo dropdownlist produces TypeError: n.slice is not a function
body: <p>Do I need to define the schema? If so, what should that look like? My searches for this seem to only turn up js solutions, I'm looking for the syntax to define it in the editortemplate.</p>
  
  <p>Shared/editortemplate:</p>
  
  <pre><code>@(
  Html.Kendo().DropDownList()
  .Name("SearchFunction")
  .DataTextField("SearchFunctionDesc")
  .DataValueField("SearchFunctionCode")
  .DataSource(source =&gt;
      {        
          source.Read(read =&gt; { 
              read.Action("GetSearchFunctions", "User");
          });
      })
      .OptionLabel("--Select a Search Function--")
      .AutoBind(false)
  )
  </code></pre>
  
  <p>In the controller:</p>
  
  <pre><code>    public JsonResult GetSearchFunctions([DataSourceRequest] DataSourceRequest request)
      {
          var searchFuncs = AdminService.GetSearchFunctions();
          DataSourceResult result = searchFuncs.ToDataSourceResult(request);
          return Json(result, JsonRequestBehavior.AllowGet);
      }
  </code></pre>
  
  <p>And then my Dapper db query:</p>
  
  <pre><code>            var result = new List&lt;SearchFunction&gt;();
              using (var conn = new OracleConnection(DatabaseConnectionString))
              {
                  conn.Open();
                  string query = "select FUNCTION_ID, SEARCH_FUNCTION_CD, " +        
                          "SEARCH_FUNCTION_DESC, IS_ACTIVE " +
                           "from TBL_SEARCH_FUNCTIONS "; 
                  result = conn.Query(query)
                      .Select(s =&gt; new SearchFunction
                      {
                          FunctionId = (int)s.FUNCTION_ID,
                          SearchFunctionCode = s.SEARCH_FUNCTION_CD,
                          SearchFunctionDesc = s.SEARCH_FUNCTION_DESC,
                          Active = s.IS_ACTIVE
                      }).ToList&lt;SearchFunction&gt;();
                  conn.Close();
                  return result;
              }
  </code></pre>