RadGridView, filtering control problem

2 Answers 122 Views
GridView
Mariusz
Top achievements
Rank 1
Iron
Mariusz asked on 13 Sep 2022, 08:32 AM

Hello,

After update Telerik components we have problem with filtering control.

After first click we don't see text fields  (filtering1.png)

But after second click everything is ok   (filtering2.png).

 

Previously we have used Telerik v 2012.

 

Dilyan Traykov
Telerik team
commented on 15 Sep 2022, 01:48 PM

Hello Mariusz,

I tried replicating the issue you described in a small sample project, however, the field filter editors are displayed as expected at my end even after the first opening of the popup.

Can you please have a look at the attached sample project and let me know if I'm missing something of importance? Are you using a custom filtering control or have you defined any styles that target the control and/or its comprising elements?

On a side note, can you also specify which version of the Telerik UI for WPF suite you're using? We recently introduced our latest release (2022.3.912) and it is possible that the issue is resolved with it. If you're using a previous version and fint it possible, you can give it a try.

2 Answers, 1 is accepted

Sort by
1
Accepted
Dilyan Traykov
Telerik team
answered on 20 Sep 2022, 09:00 AM

Hello Mariusz,

Thank you very much for the updated project.

The reason for this result is that the default FilteringControl from which the CustomFilteringControl is derived initializes most of its logic (along with the filter editors) in its constructor which is not called in the derived class. To resolve this, you can add the following constructor:

public CustomFilteringControl(GridViewColumn column) : base(column)
        {
        }

This would, however, require you to also pass the column when initializing these filtering controls:

            foreach (var column in playersGrid.Columns)
            {
                column.FilteringControl = new CustomFilteringControl(column);
            }

I've updated the sample project to demonstrate this. Please also try this in your original application and let me know if it resolves your issue.

Regards,
Dilyan Traykov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Mariusz
Top achievements
Rank 1
Iron
commented on 20 Sep 2022, 09:47 AM

Hello Dilyan !

Thank you for your help.

Your solutions work in my original application.

 

Best Regards

Mariusz

0
Mariusz
Top achievements
Rank 1
Iron
answered on 19 Sep 2022, 12:05 PM

Hello,

Thanks for your support.

Yes, we use custom control, but without extra styles.

I have reproduced the issue in your project. Please check it.

Tags
GridView
Asked by
Mariusz
Top achievements
Rank 1
Iron
Answers by
Dilyan Traykov
Telerik team
Mariusz
Top achievements
Rank 1
Iron
Share this question
or