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

[Solved] GridView filter header not showing

3 Answers 136 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gio
Top achievements
Rank 1
Gio asked on 10 Jan 2011, 11:50 PM
Hi, 

This attribute setting telerikGridViewFilter:CustomFilterRow.IsEnabled="True" does not have any effect in my grid view. I'm using the GridView.dll from the Samples. Did I miss something

thanks

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 11 Jan 2011, 07:38 AM
Hi Gio,

May you take another look on our sample and check if you have created all the necessary elements ?
 

All the best,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Gio
Top achievements
Rank 1
answered on 11 Jan 2011, 07:55 AM
I don't know what was going on there but the next time I built the solution, the filters were up. So I guess this one is closed.
My object though is still not reached. Is it possible to set only one filter predicate, say only "Contains" for string search. What I wanted to achieve here something like the search-as-you-type feature.
0
Maya
Telerik team
answered on 11 Jan 2011, 09:23 AM
Hello Gio,

If you want to add a StartsWith operator, you may define it in the ApplicableFilterOperators property in the ColumnFilterCell:

protected virtual IEnumerable<FilterOperator> ApplicableFilterOperators
{
    get
    {
    return new FilterOperator[]
  {
       FilterOperator.IsLessThan,
         FilterOperator.StartsWith,
           FilterOperator.IsLessThanOrEqualTo,
           FilterOperator.IsEqualTo,
           FilterOperator.IsNotEqualTo,
           FilterOperator.IsGreaterThanOrEqualTo,
           FilterOperator.IsGreaterThan
   };
    }
}
  
Consequently, you may remove all those that you do not need. 
Another possible solution may be to use the approach demonstrated in this blog post.

Best wishes,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Gio
Top achievements
Rank 1
Answers by
Maya
Telerik team
Gio
Top achievements
Rank 1
Share this question
or