DropDownList in toolbar showing as a text box, so doesn't work

2 posts, 0 answers
  1. Avrohom Yisroel
    Avrohom Yisroel avatar
    35 posts
    Member since:
    Jan 2011

    Posted 19 Jul 2012 Link to this post


    I'm using the ASP.NET MVC helpers for KendoUI, and have version 2012.2.710.340 included in my project. I'm trying to add a toolbar to the grid, so the user can filter the data. I have copied code form the sample, but it's not working.

    My grid markup in the Razor view looks like this...
               .DataSource(ds => ds.Server().Model(m => m.Id(t => t.ID)))
               .ToolBar(toolbar => toolbar.Template(
                                                      .DataSource(dataSource => dataSource.Read("GetSitesForView""Home"))
                                                      .Events(events => events.Change("change"))
               .Columns(cols => {
                 cols.Bound(t => t.ID).Title("ID").Title("Ticket ID").Filterable(true).Width(50);
                 cols.Bound(t => t.Site).Title("Site").Filterable(true);
                 cols.Bound(t => t.DhrNumber).Title("DHR Number").Filterable(true).Width(100);
                 cols.Bound(t => t.Room).Title("Room").Filterable(true);
                 cols.Bound(t => t.ShortSummary).Title("Ticket Description").Filterable(true);
                 cols.Bound(t => t.Status).Title("Ticket Status").Filterable(true).Width(80);

    The grid itself displays fine, but the toolbar doesn't. You can see how it looks here...

    As you can see, I have a text box instead of a dropdown.

    Anyone any ideas? I've spent hours on this, and just can't see what I've done wrong.

  2. Rosen
    Rosen avatar
    3214 posts

    Posted 20 Jul 2012 Link to this post


    As we have replied you in the support ticket you have open, the DropDownList are not loaded due to a JavaScript error. The handler assigned to their change event does not exist.
    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