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
65
How to set a DefaultFieldLayout on XamTreeGrid
posted

Hi,

I'm trying to set the DefaultFieldLayout on my XamTreeGrid but with no success. How shall I do that in the following example?

<igDP:XamTreeGrid
x:Name="xtgBlotter"
DataSource="{Binding BlotterItems}"
Background="Transparent"
Foreground="White"
SelectedDataItemsScope="RecordsOrCells"
DefaultFieldLayout="??????????????????"
>
<igDP:XamTreeGrid.FieldLayouts>
<igDP:FieldLayout Key="DefOrd" x:Name="DefOrdName">
...
</igDP:FieldLayout>
</igDP:XamTreeGrid.FieldLayouts>
</igDP:XamTreeGrid>

using either Key or x:Name doesn't work.

  • 22015
    posted

    Hello Dariusz,

     

    Thank you for your post!

     

    I have been looking into it. What I can suggest is using the IsDefault property of the FieldLayout, for which you want to be the default one. For example:

    <igDP:FieldLayout IsDefault="True".... />.

     

    Please do not hesitate to let me know if you have any further questions on this matter.