Contains Filter Menu Item Missing from radgrid filter

3 posts, 1 answers
  1. Justin
    Justin avatar
    20 posts
    Member since:
    Jul 2011

    Posted 17 Jun 2015 Link to this post



    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">
                            <Selecting AllowRowSelect="true" />
                            <ClientEvents OnRowSelected="RadGrid1_RowSelected" OnRowDeselected="RadGrid1_RowDeselected" OnRowCreated="RadGrid1_RowCreated" OnGridCreated="RadGrid1_GridCreated"  />
                            <MasterTableView DataKeyNames="ID" ClientDataKeyNames="ID" GroupLoadMode="Client" >
                                <telerik:GridSortExpression FieldName="ID" SortOrder="Descending" />
                              <GroupByExpressions >
                                <telerik:GridGroupByExpression >
                                        <telerik:GridGroupByField  FieldAlias="ID" FieldName="ID" HeaderText="Proposal No" FormatString="{0:D}">
                                        <telerik:GridGroupByField FieldName="ID" SortOrder="Descending"></telerik:GridGroupByField>
                                <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>


    Thanks in advance,


  2. Answer
    Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 18 Jun 2015 in reply to Justin Link to this post

    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

  3. DevCraft R3 2016 release webinar banner
  4. Justin
    Justin avatar
    20 posts
    Member since:
    Jul 2011

    Posted 18 Jun 2015 in reply to Jayesh Goyani Link to this post

    Understood. Thank you for clarifying.
Back to Top