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

Contains Filter Menu Item Missing from radgrid filter

2 Answers 166 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 17 Jun 2015, 03:21 PM

Hello,

 

I have created a radgrid with some basic grouping functionality. I have filtering enabled for my ID column, which is also the fieldName value for my grouping. I noticed when I was trying to reduce the filter menu options to have only "no filter and "contains" the "contains" value was missing. I suspected initially that this may have been due to the fact that I was using the grouping feature, but even when I removed the grouping code from the aspx the "contains" filter option never shows up?

 

Am I missing something?

 

<telerik:RadGrid ID="RadGrid1" Skin="Outlook" 
                     ViewStateMode="Enabled" AllowFilteringByColumn="true"
                     OnNeedDataSource="RadGrid1_NeedDataSource" GridLines="Both" runat="server"
                     AutoGenerateColumns="false" AllowPaging="true">
                     <ClientSettings>
                      
                        <Selecting AllowRowSelect="true" />
                        <ClientEvents OnRowSelected="RadGrid1_RowSelected" OnRowDeselected="RadGrid1_RowDeselected" OnRowCreated="RadGrid1_RowCreated" OnGridCreated="RadGrid1_GridCreated"  />
                     </ClientSettings>
                        <MasterTableView DataKeyNames="ID" ClientDataKeyNames="ID" GroupLoadMode="Client" >
                        <SortExpressions>
                            <telerik:GridSortExpression FieldName="ID" SortOrder="Descending" />
                        </SortExpressions>
                          <GroupByExpressions >
                            <telerik:GridGroupByExpression >
                                <SelectFields>
                                    <telerik:GridGroupByField  FieldAlias="ID" FieldName="ID" HeaderText="Proposal No" FormatString="{0:D}">
                                    </telerik:GridGroupByField>
                                </SelectFields>
                                 
                                <GroupByFields>
                                    <telerik:GridGroupByField FieldName="ID" SortOrder="Descending"></telerik:GridGroupByField>
                                </GroupByFields>
                            </telerik:GridGroupByExpression>
                        </GroupByExpressions>
                        <Columns>
                            <telerik:GridBoundColumn AllowFiltering="true" DataField="ID" HeaderText="Proposal No." SortExpression="ID"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Revision" AllowFiltering="false"  HeaderText="Revision"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="partnumber" AllowFiltering="false" HeaderText="Part No."></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="quickship" AllowFiltering="false" HeaderText="Quickship No."></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="datequoted" AllowFiltering="false" HeaderText="Date Proposed"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="dateexpires" AllowFiltering="false" HeaderText="Date Expires"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="notes" AllowFiltering="false" HeaderText="Notes"></telerik:GridBoundColumn>
                        </Columns>
                     </MasterTableView>
                 </telerik:RadGrid>     

 

Thanks in advance,

Justin

2 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 18 Jun 2015, 06:22 AM

Hello Justin,

Filter menu options will be shown based on field/column data type. I assume that ID column has int datatype so it radgrid is not displayed "contain" and "Dose not contains" options in filter menu.

Please compare your filter menu option with this example. Let us know if the filter menu options is not matched with grid.

Thanks, Jayesh Goyani

0
Justin
Top achievements
Rank 1
answered on 18 Jun 2015, 01:43 PM
Understood. Thank you for clarifying.
Tags
Grid
Asked by
Justin
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Justin
Top achievements
Rank 1
Share this question
or