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

Assign Operator DropDownList an ID value

1 Answer 154 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Veteran
Jeff asked on 23 Sep 2020, 02:24 PM
Can I assign an id value to the filter operator dropdownList control ?  I want to do this so I can reference the specific dropdown control later.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 25 Sep 2020, 06:32 AM

Hello Jeff, 

 

Generally, there is no need to do that, but nevertheless, you can achieve it using the following event : https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/events/filtermenuopen 

 

Similar to this sample:
https://docs.telerik.com/kendo-ui/knowledge-base/default-grid-filter

 

Here is another live dojo sample to demonstrate how you can access the generated dropdowns:
https://dojo.telerik.com/IfOditAt/2

 

    

In case you are using different filter mode, the event is called columnMenuOpen:
https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/events/columnmenuopen

Here is the updated sample with this logic applied:
https://dojo.telerik.com/IfOditAt/6

I hope this will prove helpful.

 

Regards,
Eyup
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Jeff
Top achievements
Rank 1
Veteran
Answers by
Eyup
Telerik team
Share this question
or