This question is locked. New answers and comments are not allowed.
Hello, I have some template for cell in RadGridView:
I see unchecked checkboxes according to Items collection after binding.
But my converter never called. Why converter never called and how I can use converter in this way? I want to use converter for processing state changes of checkboxes and pass one parameter (also using data binding) to converter.
Converter code (if I uncomment Debugger.Break lines - nothing changes - debugger don't called)
Thanks!
<
DataTemplate
x:Key
=
"PropEditorSet"
>
<
telerik:RadMenu
VerticalAlignment
=
"Top"
ItemsSource
=
"{Binding Items}"
Background
=
"Transparent"
>
<
telerik:RadMenu.Resources
>
<
SLAdmin:SetToStringConverter
x:Key
=
"setToStringConverter"
/>
</
telerik:RadMenu.Resources
>
<
telerik:RadMenu.ItemTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding ValueString, Mode=TwoWay, Converter={StaticResource setToStringConverter}}"
Content
=
"{Binding Name}"
/>
</
DataTemplate
>
</
telerik:RadMenu.ItemTemplate
>
</
telerik:RadMenu
>
</
DataTemplate
>
I see unchecked checkboxes according to Items collection after binding.
But my converter never called. Why converter never called and how I can use converter in this way? I want to use converter for processing state changes of checkboxes and pass one parameter (also using data binding) to converter.
Converter code (if I uncomment Debugger.Break lines - nothing changes - debugger don't called)
public
class
SetToStringConverter : IValueConverter
{
public
object
Convert(
object
value, Type targetType,
object
parameter, CultureInfo culture)
{
//Debugger.Break();
return
true
;
}
public
object
ConvertBack(
object
value, Type targetType,
object
parameter, CultureInfo culture)
{
//Debugger.Break();
return
true
;
}
}
Thanks!