dropdown list not working

2 posts, 0 answers
  1. mww
    mww avatar
    257 posts
    Member since:
    Sep 2012

    Posted 09 Jan 2013 Link to this post

    I cant get a dropdown list to work, this is the first time Ive used kendo and as far as im aware Im using it correctly but I cant get the dropdown list to show.  Heres the code

                   @Html.LabelFor(m => m.UserRole)
                   @Html.Kendo().DropDownListFor(m => m.UserRole).BindTo(Model.UserRoles).AutoBind(true).SelectedIndex(0)

    Model.UserRoles is populated with 3 items.  Firebug console is showing this error

    and this is the HTML rendered

    <label for="UserRole">User role</label>
    <input id="UserRole" type="text" name="UserRole" data-val-required="The User role field is required." data-val="true">
     can anyone tell me where Im going wrong ?

  2. Iliana Nikolova
    Iliana Nikolova avatar
    2622 posts

    Posted 11 Jan 2013 Link to this post

    Hello Mark,

    The most likely reason for this error is lack of some of the needed resources or incorrect order. Please check if everything is correctly included.
    Kind regards,
    Iliana Nikolova
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top