Disable filter for certain columns in Virtualgrid

1 Answer 97 Views
VirtualGrid
Gonzalo
Top achievements
Rank 1
Gonzalo asked on 06 Oct 2022, 12:48 PM
Hi, I'm using a VirtualGrid with a CustomDataProvider. I want disable the filtering capabilities for certain columns removing also de funnel symbol in the header. How can I do that?

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 11 Oct 2022, 10:50 AM

Hi Gonzalo,

You can disable the filtering for a particular property by overriding the DataMemberNeeded method of the custom DataProvider and setting the IsFilterable property of the DataMemberEventArgs:

        protected override void DataMemberNeeded(DataMemberEventArgs e)
        {
            base.DataMemberNeeded(e);

            if (e.MemberName == "Name")
            {
                e.IsFilterable = false;
            }
        }

Please give this a try and let me know if such an approach works for you.

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.

Tags
VirtualGrid
Asked by
Gonzalo
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or