Dropdown and Grid filter icon - Both have same style classes (k-picker-solid)

1 Answer 20 Views
DropDownList Grid
RAMAKRISHNAN
Top achievements
Rank 1
Iron
RAMAKRISHNAN asked on 15 Feb 2024, 11:57 AM
I have been trying to use kendo-dropdown-list and kendo-grid in the same page. If I change the styles of k-picker-solid along with dropdown list, filter icon template is also getting affected. 

1 Answer, 1 is accepted

Sort by
0
Zornitsa
Telerik team
answered on 20 Feb 2024, 08:45 AM

Hi, 

The described behavior is expected since the built-in filter of the Grid component internally uses a DropDownList that contains the mentioned 'k-picker-solid' class. 

Therefore, in order to have the desired styles applied only to the DropDownList, the developer should use a more specific selector or add their own custom class to the component and use it as a CSS selector for the corresponding element:

 <kendo-dropdownlist
      class="myDropDownList"
       ...
></kendo-dropdownlist>
.myDropDownList {
    background-color: red
}

Here is also a StackBlitz example for a better observation of the approach:

Hope that the provided information is helpful.

Regards,
Zornitsa
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
DropDownList Grid
Asked by
RAMAKRISHNAN
Top achievements
Rank 1
Iron
Answers by
Zornitsa
Telerik team
Share this question
or