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

CheckBox in RadGridView Q1 2010

4 Answers 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
shirley wang
Top achievements
Rank 1
shirley wang asked on 12 Apr 2010, 07:47 PM
Dear Telerik developers,

I have a gridview in my application which contains several checkbox columns. Why
do they have such a grey color. It seems that they are all in inactive state. Is there
anything i can do to make them prettier? Thank you !

Shirley Wang

4 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 15 Apr 2010, 08:29 AM
Hello Shirley Wang,

You can set a template of the cell, add a CheckBox in it and style it to fit your design.
Let me know if you need any assistance with this.

All the best,
Kalin Milanov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
shirley wang
Top achievements
Rank 1
answered on 15 Apr 2010, 08:55 AM
Thank you for the answer. I'ver tried. But if i use template, i can not get this column to be filtered as an usual GridViewDataColumn. Actually a radio button is better for this situation if i can get the column, which use template to be filtered.
0
Accepted
Milan
Telerik team
answered on 21 Apr 2010, 08:24 AM
Hi shirley wang,

There is no problem to have a custom template or style on a GridViewDataColumn. For example, you could try something like this:

1.<!-- GridViewDataColumn allows us to sort/group/filter -->
2.<telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding IsGoalKeeper}" IsReadOnly="True">
3.    <telerik:GridViewDataColumn.CellTemplate>
4.        <DataTemplate>
5.            <CheckBox IsChecked="{Binding IsGoalKeeper, Mode=TwoWay}"/>
6.        </DataTemplate>
7.    </telerik:GridViewDataColumn.CellTemplate>
8.</telerik:GridViewDataColumn>


All the best,
Milan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
shirley wang
Top achievements
Rank 1
answered on 26 Apr 2010, 03:27 PM
Exactlly what i want.

Thank you Milan
Tags
GridView
Asked by
shirley wang
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
shirley wang
Top achievements
Rank 1
Milan
Telerik team
Share this question
or