Ticket T465110
Visible to All Users

TreeView Collapsed problem on thread row creations

created 8 years ago

Hi,
I have a small problem when I populate the tree view. I have to expand al nodes. I set the property on the treeView, but I populate the tree in the constructor It works fine but if in the constructor use a thread (to give a user feedback) this doesn't works fine.
In the attatch there is the example of problem. Can you help me to resolve my problem?
thanks

Stefano

Answers approved by DevExpress Support

created 8 years ago (modified 8 years ago)

Hello Stefano,

You can asynchronously call the View.ExpandAllNodes method using the Dispatcher.BeginInvoke method.

C#
Dispatcher.BeginInvoke((Action)(() => { GridLocationsModules.View.ExpandAllNodes(); }));

Thanks,
Elliot

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.