Change Filter to checkbox

3 posts, 1 answers
  1. Eric Klein
    Eric Klein avatar
    183 posts
    Member since:
    Aug 2009

    Posted 25 Aug 2009 Link to this post

    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. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 26 Aug 2009 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Eric Klein
    Eric Klein avatar
    183 posts
    Member since:
    Aug 2009

    Posted 26 Aug 2009 Link to this post

    Thanks Princy that was it.  Never thought of that.
Back to Top