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
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
0
Hello Shirley Wang,
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.
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.
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
Hi shirley wang,
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.
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
Thank you Milan