Can the GridColumnMenuCheckboxFilter component be used alone without Grid?

2 Answers 85 Views
General Discussions Grid
Hu
Top achievements
Rank 1
Iron
Iron
Iron
Hu asked on 01 Sep 2023, 03:12 AM

Hi All,

In our project, we need to use a component such as the checkbox filter in the Grid alone to implement business functions. Can the one marked in the red box be used alone as an independent component? Thank you.

If it cannot be used alone, which component do you recommend to use to achieve similar functions, thank you very much

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 11 Sep 2023, 11:30 AM

Hello Hu,

The Search input will filter the data with startsWith and for changing the behavior you can implement custom search component as shown in the following example:

You can further customize it to meet your exact requirements. 

 

Best Regards,
Konstantin Dikov
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!

Hu
Top achievements
Rank 1
Iron
Iron
Iron
commented on 12 Sep 2023, 07:04 AM

Wow, that's great, I will learn more about kendo.

Best Regards,
Sunny

 

Hu
Top achievements
Rank 1
Iron
Iron
Iron
commented on 23 Oct 2023, 01:32 AM

Hi Konstantin Dikov,

There is another scenario when we use this component. We need to control certain items in the list to be disabled based on conditions. In other words, the user cannot check the checkbox. We want to know whether our component supports this function.

 Looking forward to your reply.

Best Regards,
Sunny

Konstantin Dikov
Telerik team
commented on 23 Oct 2023, 05:46 PM

Hi Sunny,

I have to say that the GridColumnMenuCheckboxFilter does not support disabled items, so if you want the user to not select particular items, you must remove them from the array set in the "data" property. 

Hu
Top achievements
Rank 1
Iron
Iron
Iron
commented on 24 Oct 2023, 02:57 AM

Thanks for your reply, I will do this
0
Konstantin Dikov
Telerik team
answered on 01 Sep 2023, 06:38 AM

Hi Hu,

Thank you for contacting us.

You can use the GridColumnMenuCheckboxFilter as a separate component for returning filter expressions. For using the GridColumnMenuCheckboxFilter you will have to pass a "column" object with a "field" and the "data". You can customize it by wrapping it within a Popup component if you want to display it in a popup.

For your convenience, following is an example demonstrating such implementation:

Note that I have created a new component that handles the open state, the filter state and displays the checkbox in a popup.

Hope this helps.

 

Regards,
Konstantin Dikov
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!

Hu
Top achievements
Rank 1
Iron
Iron
Iron
commented on 01 Sep 2023, 07:09 AM

That's cool, thanks a lot.
Hu
Top achievements
Rank 1
Iron
Iron
Iron
commented on 11 Sep 2023, 08:43 AM

Hi Konstantin Dikov,

Another question, if the ProductName appears in the format abc.uvw, it cannot be searched through uvw. Looking forward to your reply.

Nxwg9k (forked) - StackBlitz

Hu
Top achievements
Rank 1
Iron
Iron
Iron
commented on 25 Apr 2024, 04:53 AM

Hi Konstantin Dikov,

I found that this component can only be collapsed by clicking the Filter button. Is it possible to support clicking elsewhere on the page to collapse it?

Tags
General Discussions Grid
Asked by
Hu
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or