Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
370
XamTreeGrid live sorting with TemplateField and alternate binding with property chain
posted

Hi,

I create a new question instead since the old one  was asked so long time ago. original question here: https://ko.infragistics.com/community/forums/f/ultimate-ui-for-wpf/122217/xamtreegrid-live-sorting-with-templatefields

I have a XamTreeGrid with live sorting but when I changed my binding in my template fields to AlternateBindings with a property chain the live sorting stopped to work. I tried with the code where it was working and only changed the binding to AlternateBinding and it worked as long as I specified the "Name" property on the template field. This did not work with a property chain. Is there a way to solve this?

Before change:

<ig:TemplateField Name="MyProperty"
DisplayTemplate="{StaticResource MyTemplate}">
<ig:TemplateField.Settings>
<ig:FieldSettings
SortComparer="{StaticResource MySortComparer}" />
</ig:TemplateField.Settings>
</ig:TemplateField>

After change:

<ig:TemplateField Label="My Property" Name="MyClass.MyProperty"
BindingType="UseAlternateBinding"
AlternateBinding="{Binding Path=MyClass.MyProperty}"
DisplayTemplate="{StaticResource MyTemplate}">
<ig:TemplateField.Settings>
<ig:FieldSettings
SortComparer="{StaticResource MySortComparer}" />
</ig:TemplateField.Settings>
</ig:TemplateField>

Parents Reply Children
No Data