HierarchyChilTemplate and Triggers issue

3 posts, 1 answers
  1. Patrick VADEL
    Patrick VADEL avatar
    9 posts
    Member since:
    Apr 2010

    Posted 27 Aug 2010 Link to this post


    I have a GridView with a HierarchyChildTemplate with two datatriggers :

    02.    <DataTemplate>
    03.        <DockPanel>
    04.            .......
    05.        </DockPanel>
    06.        <DataTemplate.Triggers>
    07.            <DataTrigger Binding="{Binding Name}" Value="Value1">
    08.                <Setter TargetName="Border1" Property="Visibility" Value="Visible" />
    09.            </DataTrigger>
    10.            <DataTrigger Binding="{Binding Name}" Value="Value2">
    11.                <Setter TargetName="Border2" Property="Visibility" Value="Visible" />
    12.            </DataTrigger>
    13.        </DataTemplate.Triggers>
    14.    </DataTemplate>

    With Rad Controls WPF 2010 Q1 triggers work fine.

    With Rad Controls WPF 2010 Q2 (or Q2 SP1) triggers don't work (If I use a converter in the binding and put a breakpoint in the converter the breakpoint is never reached).

    The only change is the version of Rad Controls.

    Could you help me ?

    Thanks in advance.


  2. Answer
    Veselin Vasilev
    Veselin Vasilev avatar
    2992 posts

    Posted 01 Sep 2010 Link to this post

    Hello Patrick VADEL,

    Probably you need to consider using the HierarchyChildTemplateSelector.

    If you face any problem converting your application to use the new property - please send me a sample project where the triggers work with the older version and I will modify it to make it work with the latest one.

    Thank you

    All the best,
    Veselin Vasilev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Patrick VADEL
    Patrick VADEL avatar
    9 posts
    Member since:
    Apr 2010

    Posted 07 Sep 2010 Link to this post

    Thank you, that's exactly what I need and it works fine !



Back to Top