changing fiter item texts on a specific column..

2 posts, 1 answers
  1. adam_right
    adam_right avatar
    7 posts
    Member since:
    May 2007

    Posted 06 Feb 2011 Link to this post

    Hi All,

    Is it possible to change a specific column's filter menu texts on RadGrid demo version(i am not sure if there is any difference between demo and regular version) ?

    suppose that, we have four columns. three with GridBoundColumn and one for GridTemplateColumn with CheckBox (ItemTemplate).
    i am writing sample code for that column, as follows...

    <telerik:GridTemplateColumn UniqueName="chkBox" DataField="isActive" FilterListOptions="VaryByDataType"
                        DataType="System.Boolean" CurrentFilterFunction="EqualTo"
                        HeaderText="Is Active"
                        AutoPostBackOnFilter="true" ItemStyle-Width="50px" FilterControlWidth="50px">
                            <asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="ToggleRowSelection"
                                AutoPostBack="True" Checked='<%#Bind("isActive") %>' />

    I need to change just this column's filter texts.

    If i use FilterMenu.Items collection on Page_Load (or on similar event ), it affects all columns.

    Do you know any solution ?

    Thanks in advance...

  2. Answer
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 Feb 2011 Link to this post


    I believe you can go for client side approach to achieve this. Check for the column name and change the filter menu item text as per requirement from client side.

    The following documentation will help you to get started.
    Reducing the filter menu options

Back to Top