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

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

    Posted 30 Apr 2016 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
    325 posts
    Member since:
    Oct 2008

    Posted 30 Apr 2016 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. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1808 posts

    Posted 03 May 2016 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!
     
  4. Reid
    Reid avatar
    325 posts
    Member since:
    Oct 2008

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

    Thank you!  That is what I needed.
Back to Top