We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Binding Issues

Thread ID:





123533 Mar 27,2016 02:17 PM UTC Mar 29,2016 12:23 PM UTC WPF 3
Tags: GridTreeControl
Asked On March 27, 2016 02:17 PM UTC

I have bee experimenting with the final example project supplied here : http://www.syncfusion.com/forums/123440/gridtreecontrol-notifying-changes-in-collection-and-dealing-with-data-object-of-selected-node

What I wanted to do was :

1) Have the tree initially empty until a button is clicked (button in bottom right corner) - this worked
2) When clicking the button the tree is loaded (by populating the bound viewmodel)  - this worked

3) However, when I click the button again I get the following. I have no idea where the extra columns have come from as they are defined in the XAML

The XAML is as below :

<syncfusion:GridTreeControl Name="treeGridFHIR"
                                    ItemsSource="{Binding FHIRModelDetails}"
                                    syncfusion:LayoutControl.SetMetroMode="True" ExpandGlyphType="PlusMinusLines" ExpandStateAtStartUp="AllNodesExpanded">

            <!--  GridTreeControl visible columns definition  -->
                <syncfusion:GridTreeColumn Width="220" MappingName="LastName" />
                <syncfusion:GridTreeColumn Width="220" MappingName="MinMax" />
                <syncfusion:GridTreeColumn Width="220" MappingName="MyEyeColor" />

Srinivasan Vasu [Syncfusion]
Replied On March 28, 2016 12:19 PM UTC

Hi Richard,

Thanks for contacting Syncfusion support.

We regret to inform you that, we are unable to understand your requirement clearly. Could you please share more details and application logics regarding your requirement,  It will be helpful for us to analyze further. 

Please let us know if you require further assistance on this.

Replied On March 28, 2016 03:42 PM UTC


Looking back I can see how my description may be hard to follow. I have attached an example project so you can see it for yourself.

Run the project, press the button in the bottom right corner to load the gridtree. It should load OK. Press the button again and the tree becomes corrupted, I don't know why?

Attachment: GridTree_Example_19972aa7.zip

Srinivasan Vasu [Syncfusion]
Replied On March 29, 2016 12:23 PM UTC

Hi Richard,

We have analyzed your query with provided sample. When the Load Tree button clicked again, automatically the other Columns like ED, FirstName and Id are created as the GridTreeControl.AutoPopulateColumns is true and it is the default value. We have modified your sample by setting AutoPopulateColumns as false in “treeGridFHIR GridTreeControl.

AutoPopulateColumns:[ Default Value - True]

While creating the VisibleColumns, the GridTreeControl gets the metadata information (Property Name, DataTypes) about the collection and populate / assign the values based on the metadata information.


While using AutoPopulateColumns as True, GridTreeControl will get the information from bound underlyingcollection and populates VisibleColumns based on this.

While using AutoPopulateColumns as False, you have to bind each property in model to GridTreeColumn as per your requirement. 

Please download the modified sample from the below location,




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon