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.
Syncfusion Feedback

SplitContainerAdv drawing issue

Thread ID:

Created:

Updated:

Platform:

Replies:

93244 Mar 5,2010 12:58 AM UTC Mar 18,2010 09:42 AM UTC ASP.NET Web Forms (Classic) 10
loading
Tags: Tools
Michael Weber
Asked On March 5, 2010 12:58 AM UTC

I am using the "Syncfusion.Windows.Forms.Tools.SplitContainerAdv" control. In the second panel of the SplitContainerAdv control I am adding a "System.Windows.Forms.Panel" control. When I attempt to display this, it appears that these control go into an endless repaint as evident by the messages I trapped using windows spy. In addition, the form never displays and the CPU is at high utilization. This only happens when I add a "System.Windows.Forms.Panel". If I used another control (e.g. Systems.Windows.Forms.DataGridView) all is well. The strange thing is that this worked with version 6 of Syncfusion but no longer works with version 7 or 8. Any thoughts would be much appreciated.

Following is the relevant code that was auto generated:

private Syncfusion.Windows.Forms.Tools.SplitContainerAdv split;
private Windows.Forms.Panel panel;
...
split = new SplitContainerAdv();
panel = new System.Windows.Forms.Panel();
split.SuspendLayout();
panel.SuspendLayout();
...
split.Dock = System.Windows.Forms.DockStyle.Fill;
split.FixedPanel = Enums.FixedPanel.Panel1;
split.IsSplitterFixed = true;
split.Location = new Point(0,0);
split.Orientation = Orientation.Vertical;
split.Panel2.Controls.Add(panel);
split.Size = new Size(500,500);
split.SplitterDistance = 235;
split.TabIndex = 0;
...
panel.Dock = DockStyle.None;
panel.Location = new Point(448,0);
panel.Size = new Size(52,206);
panel.TabIndex = 1;
...
split.ResumeLayout(false);
panel.ResumeLayout(false);


Michael Weber
Replied On March 6, 2010 09:46 PM UTC

Nothing? I can't be in uncharted water or am I?

Rajasekar B [Syncfusion]
Replied On March 8, 2010 11:35 AM UTC

Hi Mark,

Thanks for using syncfusion product.

We checked in 7.4 and 8.1 version. But the issue is not reproducible. I added panel to the splitcontaineradv but there is no endless repaint issue as mentioned by you. And i used property values as in the code snippet but the issue is not reproduced. I have attached the sample using which i checked. Can you provide us some more information to reproduce the issue?

Thanks,
Rajasekar



SplitContainerAdv_bc308c1a.zip

Michael Weber
Replied On March 9, 2010 06:38 PM UTC

Thanks for looking into that. We are also adding the UserControl (that contains the Syncfusion control) to the controls associated with a panel of a Windows.Forms.SplitContainer controls.

SplitContainer.Panel2.Controls.Add(...);

Michael Weber
Replied On March 9, 2010 08:18 PM UTC

Thanks for all the help. I've already spent too much time on this. The problem seems limited to the panel type of controls, any other type of control an there isn't any problems. I'm going to try a rewrite to take Syncfusion out of the equation. I am not, however, 100% convinced that Syncfusion is the problem.

Rajasekar B [Syncfusion]
Replied On March 10, 2010 01:12 PM UTC

Hi Mark,

I have added usercontrol and the panel to the Panel2 control of splitcontaineradv. But the repainting issue is not reproduced and the cpu usage is normal. I have attached the sample i have used to reproduce it. Can you modify this sample to reproduce the issue?

Thanks,
Rajasekar





SplitContainerAdv_805c2277.zip

Michael Weber
Replied On March 16, 2010 12:20 AM UTC

Again, thanks for all the help. Another piece of information that might help is that the same time we upgraded to syncfusion 8 we also upgraded to VS2008.

Michael Weber
Replied On March 16, 2010 12:51 AM UTC

The attached code appears to exhibit the problem. Run within VS and note the CPU utilization.



SplitContainerAdv_withProblem_7f809881.zip

Michael Weber
Replied On March 16, 2010 03:15 PM UTC

Don't bother running the app I attached, I'm not seeing the problem today.

Michael Weber
Replied On March 16, 2010 04:24 PM UTC

Problem solved!!!!!!!!!!!!!!!!!!!!!!!!!

I replaced the Syncfusion SplitContainerAdv with the Microsoft SplitContainer and it works perfectly.

Rajasekar B [Syncfusion]
Replied On March 18, 2010 09:42 AM UTC

Hi Mark,

Thanks for the update.

We have checked using the sample you sent but the issue is not reproducible in SplitContainerAdv.

Thanks,
Rajasekar

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.

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

;