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.
Unfortunately, activation email could not send to your email. Please try again.

TreeViewAdv redraw bug when programatically expanding.

Thread ID:

Created:

Updated:

Platform:

Replies:

43470 Apr 24,2006 09:24 AM Jun 6,2006 07:45 AM Windows Forms 6
loading
Tags: Tools
Krunoslav Leljak
Asked On April 24, 2006 09:24 AM

Hi there, I have following problem. When I programatically expand selected node, after call of EndUpdate tree is not repainted. Is this a bug, or maybe I do something wrong? Here is the code: private void miExpandAll_Click(object sender, System.EventArgs e) { TreeNodeAdv tn = tv.SelectedNode; if ( tn == null ) return; tv.BeginUpdate(); tn.ExpandAll(); tv.EndUpdate(); }

Vijayanand S [Syncfusion]
Replied On April 24, 2006 11:18 AM

Hi Krunoslav, I am afraid, BeginUpdate method will stop the painting of the control untill EndUpdate method is executed. If we expand the tree between these two methods, TreeViewAdv will not show the expanded nodes. Inorder to avoid this problem, you have to call the ExpandAll method after BeginUpdate/EndUpdate methods. If this behavior is not desirable, could you please let me know the exact usage scenario of these methods(BeginUpdate/EndUpdate) in your application and let me know your Essential Studio version? Thanks for using Syncfusion products. Regards, Vijay

Krunoslav Leljak
Replied On April 25, 2006 07:26 AM

Well after EndUpdate() tree control should be redrawn correctly (right?), but it isn''t. Also when I call TreeView.Refresh() afterwards it is still not redrawn correctly. I suppose this is really a bug. ExpandAll without BeginUpdate..EndUpdate block looks very ugly on large trees. It worked correctly in previous versions of Syncfusion.

Vijayanand S [Syncfusion]
Replied On April 25, 2006 11:02 AM

Hi Krunoslav, Sorry for the inconvenience caused. Could you please let me know the Essential Studio version number currently you are using? Thanks, Vijay

Krunoslav Leljak
Replied On April 26, 2006 09:57 AM

The version with problems is 4.1.0.62 >Hi Krunoslav, > >Sorry for the inconvenience caused. > >Could you please let me know the Essential Studio version number currently you are using? > >Thanks, >Vijay

Vijayanand S [Syncfusion]
Replied On April 26, 2006 11:37 AM

Hi Krunoslav, This is an already known issue and it has been fixed internally. The patch for this issue is available now. If you need a patch for this issue, please create a Direct trac incident regarding this forum. Thanks, Vijay

Deepa TS [Syncfusion]
Replied On June 6, 2006 07:45 AM

Hi Krunoslav, The fix for the "TreeViewAdv does not refresh when we call Collapse/Expand method" has been included in our Final release of v.4.2(v.4.2.0.37) . And you can download the same from the following link: 4.2VFinalRelease Let me know if you need any further assistance. Thanks for your interest in Essential Tools. Regards, Deepa

CONFIRMATION

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.

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.

;