Assign Operator DropDownList an ID value

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    18 posts
    Member since:
    May 2012

    Posted 23 Sep 2020 Link to this post

    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.
  2. Eyup
    Admin
    Eyup avatar
    4074 posts

    Posted 25 Sep 2020 Link to this post

    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/.

Back to Top