12 Answers, 1 is accepted
You may change this by altering the appearance of GridViewCheckBox and replace the indeterminate icon with a TextBlock, which Text property is set to "?", please refer to the attached picture.
If you need any further assistance do not hesitate to contact us!
Vanya Pavlova
the Telerik team
When GridViewCheckBoxColumn goes into edit mode the standard CheckBox appears. If you want to maintain the same behavior in edit mode you should change the Indeterminate icon for CheckBox control in the same way and apply it within GridViewCheckBoxColumn's EditorStyle, as shown below:
<
Style
x:Key
=
"style1"
TargetType
=
"CheckBox"
>
.....The rest of your style
</
Style
>
<
telerik:GridViewCheckBoxColumn
EditorStyle
=
"{StaticResource style1}"
... />
You may also mark this style as an implicit without specifying the x:Key attribute and it will be applied to all CheckBox in your current application.
Greetings,
Vanya Pavlova
the Telerik team
When GridViewCheckBoxColumn goes into edit mode the standard CheckBox appears. If you want to maintain the same behavior in edit mode you should change the Indeterminate icon for CheckBox control in the same way and apply it within GridViewCheckBoxColumn's EditorStyle, as shown below:
<
Style
x:Key
=
"style1"
TargetType
=
"CheckBox"
>
.....The rest of your style
</
Style
>
<
telerik:GridViewCheckBoxColumn
EditorStyle
=
"{StaticResource style1}"
... />
You may also mark this style as an implicit without specifying the x:Key attribute and it will be applied to all CheckBoxes in your current application.
Vanya Pavlova
the Telerik team
In fact, I don't think the checkbox in edit mode is the same as the regular checkbox at all. The default checkbox in grid edit mode has 2 borders (so the tick in it is smaller), while the normal checkbox only have 1 border.
The CheckBox control is one of the native Silverlight controls supported by our theming mechanism.
As you might know we ship our themes as separate projects. You may get the xaml files for any Telerik theme from the Themes folder of your personal installation. May you please open the Themes/Office_Black folder, find the CheckBox.xaml file. Copy this style to your current project change the Indeterminate icon to "?", mark this style as an implict and let me know what happens.
Vanya Pavlova
the Telerik team
I am guessing the implicit style stored under the theme is overriding my own implicit style. If that's true then I need to edit then recompile all the themes myself?
Indeed the styles are theme specific and they use their own resources for a particular theme. In each theme you have a separate styles for a control and its parts. For example: if you want to change the CheckBox in Windows7Theme you may copy only the style for this control in Windows7 theme to your current project and modify in in a desired way. Then the changes will be reflected correspondingly.
Please let me know if you need a sample project that demonstrates this approach.
Vanya Pavlova
the Telerik team
At the end, nothings change: checkbox outside of the grid reflects the changes; checkbox inside the grid does not.
I have prepared an example for you using binaries as part of our latest internal build that demonstrates how this can be achieved.
Vanya Pavlova
the Telerik team
Iam using gridviewcheckbox column,i want to assign dropshadow effect to my gridviewcheckbox column..
for eg in normal check box in silverlight:
List<
CheckBox
> chkList = AddFirmUser._addFirmUserInstance.dataGridPortalList.GetVisualOfType<
CheckBox
>().Where(c => c.Name == "chkActive").ToList();
if (chkList.Count > 0)
{
foreach (CheckBox chk in chkList)
{
chk.Effect = (DropShadowEffect)Resources["HelpEffect"];
}
Storyboard.SetTarget(storyForWizard, chkList[0]);
storyForWizard.Begin();
}
How to write for telerik gridviewcheckbox
column in silverlight.i tried by this ..its not working
List<
GridViewCheckBoxColumn
> chkList = AddFirmUser._addFirmUserInstance.dataGridPortalList.GetVisualOfType<
GridViewCheckBoxColumn
>().Where(c => c.UniqueName == "chkActive").ToList();
if (chkList.Count > 0)
{
foreach (GridViewCheckBoxColumn chk in chkList)
{
chk.Effect = (DropShadowEffect)Resources["HelpEffect"];
}
Storyboard.SetTarget(storyForWizard, chkList[0]);
storyForWizard.Begin();
}
Is it possible for grid view check box column telerik silverlight?