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

changing fiter item texts on a specific column..

1 Answer 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
adam_right
Top achievements
Rank 1
adam_right asked on 06 Feb 2011, 04:41 PM
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">
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="ToggleRowSelection"
                            AutoPostBack="True" Checked='<%#Bind("isActive") %>' />
                    </ItemTemplate>                   
                </telerik:GridTemplateColumn>

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...



1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 07 Feb 2011, 08:52 AM
Hello,


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


-Shinu.
Tags
Grid
Asked by
adam_right
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or