RadMenu with DataBinding - convertes never called

2 posts, 0 answers
  1. Denis
    Denis avatar
    9 posts
    Member since:
    Jun 2012

    Posted 05 Apr 2012 Link to this post

    Hello, I have some template for cell in RadGridView:
    <DataTemplate x:Key="PropEditorSet">
        <telerik:RadMenu VerticalAlignment="Top" ItemsSource="{Binding Items}" Background="Transparent">
                <SLAdmin:SetToStringConverter x:Key="setToStringConverter"/>
                    <CheckBox IsChecked="{Binding ValueString, Mode=TwoWay, Converter={StaticResource setToStringConverter}}" Content="{Binding Name}" />

    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)
                return true;
            public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
                return true;

  2. Vlad
    Vlad avatar
    11100 posts

    Posted 10 Apr 2012 Link to this post


     Converter will not be called if the binding is invalid. Please check your Visual Studio output window for more info about invalid bindings. 

    the Telerik team

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

  3. DevCraft R3 2016 release webinar banner
Back to Top