Adding a Kendo Dropdown list to a Toolbar with databinding to the Model

4 posts, 0 answers
  1. Reid
    Reid avatar
    317 posts
    Member since:
    Oct 2008

    Posted 30 Apr Link to this post

    Hello,

    I have been unsuccessful adding a Kendo Dropdown list to a Kendo Toolbar. 

    Using the code below I can add a standard select to the items list.

    items.Add().Template("<select id='areaDropdown' class='k-dropdown  k-ie k-select k-state-border-down' /> ").Overflow(ShowInOverflowPopup.Never);

     

    1) How can I replace this with a Kendo Dropdown List?

    2) How can I make it read only?

    3) How to I data bind the list to a member in the View Model of type List<SelectListItem>()  ?

     

    Thanks,

    Reid

  2. Reid
    Reid avatar
    317 posts
    Member since:
    Oct 2008

    Posted 30 Apr in reply to Reid Link to this post

    I forgot to mention I also need to put text boxes and date time pickers in the same toolbar.

    Thanks

  3. Kendo UI is VS 2017 Ready
  4. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 03 May Link to this post

    Hello Reid,

    Please refer to the ToolBar / Basic usage demo that shows how to add a Kendo UI DropDownList widget in the template. Same approach can be used for DatePicker for example. 

     

    Regards,
    Boyan Dimitrov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Reid
    Reid avatar
    317 posts
    Member since:
    Oct 2008

    Posted 04 May in reply to Boyan Dimitrov Link to this post

    Thank you!  That is what I needed.
Back to Top
Kendo UI is VS 2017 Ready