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

Change Filter to checkbox

2 Answers 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric Klein
Top achievements
Rank 1
Eric Klein asked on 25 Aug 2009, 08:39 PM

I have a grid with the following column

<telerik:GridCheckBoxColumn UniqueName="Active" DataField="Active" HeaderText="Active"  > 
                        </telerik:GridCheckBoxColumn> 

The problem is in the grid for the filter it shows a text box with the filter icon next to it.  I want the filter to be a checkbox, just like the fields are in the grid.  Why do the filter not match the rest of the grid

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 26 Aug 2009, 05:28 AM
Hello Eric,

Try setting the DataType of the column to System.Boolean and see if it helps display the chekbox in the filter cell for that column. Also make sure that the field name set as the datafield for the column does exist in the DataSource to which the grid is bound to.
aspx:
<telerik:GridCheckBoxColumn UniqueName="Active" DataField="Active"  
HeaderText="Active" DataType="System.Boolean">   
</telerik:GridCheckBoxColumn>   

Thanks
Princy
0
Eric Klein
Top achievements
Rank 1
answered on 26 Aug 2009, 12:33 PM
Thanks Princy that was it.  Never thought of that.
Tags
Grid
Asked by
Eric Klein
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Eric Klein
Top achievements
Rank 1
Share this question
or