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

Checkbox Styling within a gridview

0 Answers 56 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 21 Jan 2013, 09:05 AM
Hi,

I have placed a checkbox within a celltemplate and celledittemplate for a gridview column.
<telerik:GridViewDataColumn Header = "Approved" DataMemberBinding = "{Binding Checked}">
<telerik:GridViewDataColumn.CellEditTemplate>
<DataTemplate>
<CheckBox IsChecked = "{Binding Checked}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellEditTemplate>
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked = "{Binding Checked}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>

I customized styling in the Metro theme for the GridViewCheckBox.xaml and did the same for the System.Windows.Checkbox.xaml.
But when my form is loaded and shows the data in the grid, the checkbox does not show the customized styling. It just shows the default windows styling.

But when I click the checkbox cell and this goes in edit mode, the customized styling is shown. So it looks like whenever the CellTemplate is active, customized styling is not shown. When the cell goes in edit mode and CellEditTemplate is activated, customized styling is being shown.

Any help appreciated on how I can make the CellTemplate to show the customized styling for the checkbox ?

Regards,

Richard Bergmans





No answers yet. Maybe you can help?

Tags
GridView
Asked by
Richard
Top achievements
Rank 1
Share this question
or