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

Hide Filter Button

3 Answers 121 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gourangi
Top achievements
Rank 1
Gourangi asked on 07 Sep 2009, 04:38 AM
Hi,

I want to have filter functionality (default i.e. contains or starts with) but I dont want that filter button with context menu for different filter options.

Do we have such feature which hides the filter button as well that context menu.

Thanks

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 07 Sep 2009, 01:30 PM
Hi Divyesh Chapaneri,

You can achieve the required functionality by subscribing to ViewCellFormatting event of RadGridView.

For example:
void radGridView2_ViewCellFormatting(object sender, CellFormattingEventArgs e) 
    if (e.CellElement is GridFilterCellElement) 
    { 
        GridFilterCellElement cell = e.CellElement as GridFilterCellElement; 
        cell.FilterButton.Visibility = ElementVisibility.Hidden; 
    } 

Write again if you need further assistance.

All the best,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Gourangi
Top achievements
Rank 1
answered on 08 Sep 2009, 04:39 AM
Dear Victor,

Unfortunately I am not able to get  cell.FilterButton property in the cell object !
The telerik dll file version I am using is 2009.1.9.316

Please look into this version's dll.

Thanks & Best Regards,
Divyesh Chapaneri
0
Victor
Telerik team
answered on 08 Sep 2009, 08:38 AM
Hello Divyesh Chapaneri,

Thank you for the clarification. This forum post indicates that you are using 2009.2.729 which seems to be wrong. This feature is available in the latest Q2 2009 SP1 release. I am afraid that previously there was no way to gain access to the filter button. Please upgrade to the latest version if possible. Write again if you have other questions.

Kind regards,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Gourangi
Top achievements
Rank 1
Answers by
Victor
Telerik team
Gourangi
Top achievements
Rank 1
Share this question
or