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

AllowFilteringByColumn

2 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lisa
Top achievements
Rank 1
Lisa asked on 14 Jun 2013, 07:20 PM

The following code somehow does not display the filtering for columns ID and First Name in the grid. Does it require any code behind or anything for it to show filtering? I just want a very simple filtering for the grid columns.

<telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server"
        <AjaxSettings
            <telerik:AjaxSetting AjaxControlID="RadGrid1"
                <UpdatedControls
                    <telerik:AjaxUpdatedControl  ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls
            </telerik:AjaxSetting
            </AjaxSettings
    </telerik:RadAjaxManagerProxy
    
    <telerik:RadAjaxLoadingPanel  ID="RadAjaxLoadingPanel1" runat="server" /> 
    <telerik:RadWindowManager  ID="RadWindowManager1" runat="server"  /> 
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" runat="server"
    
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" PageSize="7"
                 AllowFilteringByColumn="true" AllowSorting="True" AllowPaging="True" ShowStatusBar="True" GridLines="None"  
                 OnNeedDataSource="RadGrid1_NeedDataSource"   
                 OnPreRender="RadGrid1_PreRender"
             <MasterTableView  DataKeyNames="Id" 
                    AllowMultiColumnSorting="True" 
                    TableLayout="Fixed"  CommandItemDisplay="Top"    
                    AllowFilteringByColumn="True"
    
                    <Columns
                         <telerik:GridBoundColumn  ReadOnly="True" HeaderText="ID" DataField="id"
                            SortExpression="id" UniqueName="id" /> 
                        <telerik:GridBoundColumn  HeaderText="First Name" DataField="Name"
                            SortExpression="name" UniqueName="Name" /> 
                    </Columns
                    </MasterTableView
    
                <FilterMenu EnableImageSprites="False" /> 
    
            </telerik:RadGrid
      </telerik:RadAjaxPanel>

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 15 Jun 2013, 03:31 PM
Hello,

There is not any such type of issue in RadGrid.

May be you have created one global skin (in which AllowFilteringByColumn="false") or by using any another code it hiding the filter.

If possible then can you please create new project and try with code & same telerik.dll version.

Let me know if any concern.

Thanks,
Jayesh Goyani
0
Lisa
Top achievements
Rank 1
answered on 17 Jun 2013, 04:24 PM
I found the problem was because the code behind set the filtering to false. Thanks.
Tags
Grid
Asked by
Lisa
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Lisa
Top achievements
Rank 1
Share this question
or