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

[Solved] Disable "starts with" box

3 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 14 Jan 2015, 10:59 AM
Hi

In following example: http://dojo.telerik.com/ukOja

how can I disable the "starts with" drop down box in the City filter only? There, I only want to have the dropdownlist with cities.

Many thanks

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 14 Jan 2015, 01:09 PM

Hello Markus,

You could bind to the filterMenuInit event of the Grid which is fired when the filter menu is opened for the first time. In the event handler check if the current field is City and disable the dropdown. Here is the modified example.

I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Markus
Top achievements
Rank 1
answered on 14 Jan 2015, 03:12 PM
Hi Dimiter

Thank you for the example. However this function is not kicked off when I have "other" thing I can do with the columns.

I have added the possibility to reorder them and the function hence is not kicked off.

http://dojo.telerik.com/ukOja/3

I do wonder if there is no way to just style the whole window new or define filters per columns (what boxes to show).

Many thanks
0
Dimiter Madjarov
Telerik team
answered on 15 Jan 2015, 08:48 AM

Hello Markus,

In this case you could use the same approach in the columnMenuInit event. I modified the example to demonstrate this.

Regarding the second question, the operators dropdown cannot be disabled directly from the Grid configuration, only the operators and messages could be defined per type.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Markus
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Markus
Top achievements
Rank 1
Share this question
or