This is a migrated thread and some comments may be shown as answers.

RadFilter show grid columns that are hidden

1 Answer 133 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Mike Nogen
Top achievements
Rank 1
Mike Nogen asked on 28 May 2010, 09:40 AM
Hello!

I donĀ“t know if this is by design or a bug. But if I have a grid with one or more columns that is hidden (not want to display them). The RadFilter still gives the user that choice in the RadFilter function.

Is this the correct behavior? If so how can I programatically hide those hidden columns also for the RadFilter component?

Or is this the way I should do it?

   protected void RadFilter1_FieldEditorCreated(object sender, RadFilterFieldEditorCreatedEventArgs e) 
    { 
        if (e.Editor.FieldName.Equals("BlockValue")) 
        { 
            this.RadFilter1.FieldEditors.Remove(e.Editor); 
        } 
    } 

 

/M

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 28 May 2010, 11:26 AM
Hello Mike,

Yes this is by design. You can set AllowFiltering to false of GridColumn which will prevent the column from showing in RadFilter's list of filterable fields.

All the best,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Filter
Asked by
Mike Nogen
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or