This is a migrated thread and some comments may be shown as answers.

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

3 Answers 2696 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
Reid
Top achievements
Rank 2
Reid asked on 30 Apr 2016, 01:30 PM

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

3 Answers, 1 is accepted

Sort by
0
Reid
Top achievements
Rank 2
answered on 30 Apr 2016, 07:01 PM

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

Thanks

0
Boyan Dimitrov
Telerik team
answered on 03 May 2016, 02:56 PM

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!
 
0
Reid
Top achievements
Rank 2
answered on 04 May 2016, 03:10 PM
Thank you!  That is what I needed.
Tags
Toolbar
Asked by
Reid
Top achievements
Rank 2
Answers by
Reid
Top achievements
Rank 2
Boyan Dimitrov
Telerik team
Share this question
or