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

Gridview Filtering issue

2 Answers 26 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nawnit
Top achievements
Rank 1
Nawnit asked on 05 Apr 2011, 11:26 AM
Hi,
I have a telerik grid view in my silverlight application and i have applied filtering option on it.But I want to customize filtering options .Some Options are not required for me Like 'Match Case' check box option is coming in every column ,I have to remove that option.

I have a POlist_grid in my code and i have set IsFilteringAllowed="True".

I have attached screenshot .The options is not required I  rounded it with red color in attached screenshot.

code is attached too.
Please help me out how can i remove such options.


Thanks.
<controls:ChildWindow x:Class="LinguistWorkbench.Assets.Controls.PurchaseOrderSearchWindow"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
            xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
           xmlns:Telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
           xmlns:TelerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
           xmlns:TelerikData="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Data"
                     
           Width="850" Height="380"
          >
    <controls:ChildWindow.Title>
        <StackPanel Orientation="Horizontal" >
            <Image Source="../Images/15printPreview.png" Width="25" Height="25" />
            <TextBlock VerticalAlignment="Center" Margin="10,0,0,0">Search and Filter Purchase Order</TextBlock>
        </StackPanel>
    </controls:ChildWindow.Title>
  
    <Grid  Background="White"  Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
  
            <TelerikGrid:RadGridView x:Name="POlist_grid" AutoGenerateColumns="False"  CanUserDeleteRows="False" CanUserFreezeColumns="False" CanUserInsertRows="False" CanUserReorderColumns="False"
                                                    CanUserSelect="True" ShowColumnFooters="False"
                                                    ShowGroupFooters="False" ShowGroupPanel="False" ShowInsertRow="False" IsFilteringAllowed="True" 
                                                    RowIndicatorVisibility="Collapsed" IsReadOnly="True" 
                                                    IsSynchronizedWithCurrentItem="false"  Height="305"   DataContext="{Binding}" RowActivated="POlist_grid_RowActivated"  >
                <TelerikGrid:RadGridView.Columns>
                    <TelerikGrid:GridViewDataColumn Header="Project Number"  Width="120"  DataMemberBinding="{Binding ProjectNumber}" />
                    <TelerikGrid:GridViewDataColumn Header="PO Number" Width="120" DataMemberBinding="{Binding PurchaseOrderNumber}" />
                    <TelerikGrid:GridViewDataColumn Header="PO Amount" Width="80"  DataMemberBinding="{Binding PurchaseOrderAmount}"  />
                    <TelerikGrid:GridViewDataColumn Header="Status" Width="160"  DataMemberBinding="{Binding TaskStatus}"  />
                    <TelerikGrid:GridViewDataColumn Header="PO Date" Width="140"  DataMemberBinding="{Binding ResultDate}"  />
                    <TelerikGrid:GridViewDataColumn Header="Comment" Width="600" DataMemberBinding="{Binding Comment}" IsFilterable="False" IsGroupable="False"   />
                </TelerikGrid:RadGridView.Columns>
            </TelerikGrid:RadGridView>
        <!--</StackPanel>-->
        <TelerikData:RadDataPager Grid.Row="2" x:Name="dataPager" PageSize="20"  DisplayMode="All"  />
    </Grid>
</controls:ChildWindow>

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 05 Apr 2011, 11:30 AM
Hello,

 You can redefine the default FilteringControl using Blend and assign the style with desired modifications using FilteringControlStyle property of GridViewColumn.

Greetings,
Vlad
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
0
Nawnit
Top achievements
Rank 1
answered on 05 Apr 2011, 02:14 PM
Hi Vlad,

Thanks for quick reply.
Can you send me test project because I tried but not able to fixed the issue.



Thanks.
Tags
GridView
Asked by
Nawnit
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Nawnit
Top achievements
Rank 1
Share this question
or