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

HierarchyChilTemplate and Triggers issue

2 Answers 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Patrick VADEL
Top achievements
Rank 1
Patrick VADEL asked on 27 Aug 2010, 10:11 AM

Hello,

I have a GridView with a HierarchyChildTemplate with two datatriggers :

01.<telerik:RadGridView.HierarchyChildTemplate>
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>
15.</telerik:RadGridView.HierarchyChildTemplate>

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.

Patrick

2 Answers, 1 is accepted

Sort by
0
Accepted
Veselin Vasilev
Telerik team
answered on 01 Sep 2010, 12:50 PM
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
0
Patrick VADEL
Top achievements
Rank 1
answered on 07 Sep 2010, 01:02 PM

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

Regards

Patrick

Tags
GridView
Asked by
Patrick VADEL
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Patrick VADEL
Top achievements
Rank 1
Share this question
or