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

How to show a column in active mode regardless of its edit mode like GridViewSelectColumn

1 Answer 22 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nagisa
Top achievements
Rank 1
Nagisa asked on 19 Dec 2011, 06:52 AM
Hi

I have a problem with showing column.
I want to show a column in active mode regardless of its edit mode like GridViewSelectColumn.

For example,
I created a CheckBoxColumn like the source below.
<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding Checked}" AutoSelectOnEdit="True" EditTriggers="CellClick" />

And it is shown in gray when it is not selected.
Is there any way to show it looks like in active mode (the style looks like it is in edit mode)  like  GridViewSelectColumn.

Best Regards,

1 Answer, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 19 Dec 2011, 07:09 AM
Hi Nagisa,

You can use GridViewDataColumn and define a CheckBox for its CellTemplate. For example:

<telerik:GridViewDataColumn DataMemberBinding="{Binding Checked}" >
 <telerik:GridViewDataColumn.CellTemplate>
   <DataTemplate>
         <CheckBox IsChecked="{Binding Checked, Mode=TwoWay}" />
   <DataTemplate>
 </telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>

 

Best wishes,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Nagisa
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or