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
910
Black background while updating tree
posted

Hi,

since the 2015.2 update we noticed while clearing nodes of a wintree (and adding new ) that the tree gets black for a short while.

I couldn't create a standalone demo showing this behaviour, but what could be the reasons for this?

Thanks,

Michael

  • 23930
    Offline posted

    Hi Michael,

    Thank you for posting in our forums.

    It would be difficult to say what exactly is causing this issue without more information. Is the tree databound or are you adding nodes directly to its node collection? Which ViewStyle are you using? How many nodes are you clearing/repopulating? Are there any handled exceptions firing (to check this enable VS to break on all exceptions - https://msdn.microsoft.com/en-us/library/x85tt0dd.aspx )?

    From your description I would say that the most probable reason for this is that the tree takes too much time to visually update itself. What may help you is to add a Begin/EndUpdate block around the clearing/repopulating code:

    try

    {

                this.ultraTree1.BeginUpdate();

                // Your logic to repopulate the tree’s node

    }

    finally

    {
                this.ultraTree1.EndUpdate();

    }

    This way the tree will redraw itself only once when it is repopulated.

    I am looking forward to hearing from you.