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

Setting default settings for dropdownlist

1 Answer 158 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Jose
Top achievements
Rank 1
Jose asked on 01 Oct 2018, 10:23 AM

Hi, we want to change the default values for all dropdowns in our project, so we have not to write it every time, for example set filter to contains in all. 

 

How can we override the constructor or change global settins for it? thank you

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 03 Oct 2018, 07:30 AM
Hi Jose,

You can override and extend the default options of the client-side DropDownList class in order to accomplish what you need. This should be done right after loading the Kendo scripts and before initializing the widgets. Like in this example here: https://dojo.telerik.com/UZUbiDOg.

Regards,
Ianko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
DropDownList
Asked by
Jose
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or