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.

Problems in Docking after migration from 2.1.09 to 4.2

Thread ID:

Created:

Updated:

Platform:

Replies:

51992 Nov 18,2006 11:02 PM Nov 22,2006 10:10 AM Windows Forms 6
loading
Tags: Tools
Administrator [Syncfusion]
Asked On November 18, 2006 11:02 PM

I have just migrated from syncfusion 2.1.0.9 to 4.2, I have couple of problems in docking since migration.
mDockingManager.SetAutoHideMode( form, true );
throws an exception showing object set to null.

Also there is another problem find in attached screenshot before & after migration. There are 2 windows in summary tab. when I close the application the docksettings for the windows are saved in attached main.xml when I load it the windows are labelled same as you will be able to differentiate between screenshots before migration & after migration. Also in the similar way when the windows are pinned I have the problem as can be visible in the screenshots for pinned. Since I am saving the settings, the problem happens only when the settings are loaded. I have spent two days investigating myself but could succeed. please let me know if some changes I need to make to make it work.

Thanks,
Sachin

code12.zip

Malarvizhi [Syncfusion]
Replied On November 20, 2006 04:33 AM

Hi Sachin,

Sorry for the inconvenience caused.

Issue 1: mDockingManager.SetAutoHideMode( form, true ); throws an exception showing
object set to null.

I was not able to reproduce the issue. Could you please let me know which 4.2 version of Essential studio you are using? ( it will be like 4.2.0.37 ) and also please provide a sample having the issue? This will help us to analyse the issue further.

Issue 2:LoadDockState Issue

Before going to load from MemoryStream its seeking position has to be initialized to Beginning of the stream. Could you please try the below code snippet and let me know your issue has been resolved or not.


MemoryStream stream = new MemoryStream();
AppStateSerializer serializer = new AppStateSerializer( SerializeMode.XMLFmtStream, stream );
stream.Seek(0, SeekOrigin.Begin);
mDockingManager.LoadDockState( serializer );


Regards
Malarvizhi.

Administrator [Syncfusion]
Replied On November 20, 2006 09:53 AM

Hi Malarvizhi,

I am using syncfusion version 4.201.0.37.
My code had stream.position set to zero. Anyway I tried seeking the memorysream to start but inspite of that I could not make it work.

I will try to make a small sample for exception problem. Time being if you can suggest something else it will be great.

Thanks,
Sachin

Murugan [Syncfusion]
Replied On November 20, 2006 04:31 PM

Hi Sachin,

Sorry for the previous update. Please delete the files from IsolatedStorage and xml file before running the application. If the issue still exists, send me the code snippet that you have used to save and load the dockstate in your application. This will help us to resolve the issue soon.

Thanks,
Murugan P.S

Sachin Bamel
Replied On November 20, 2006 10:15 PM

https://www.syncfusion.com/Support/DirectTrac/user/details.aspx?id=29843

Also find the attached code. I have already done all the deleting of xml files but still problem happens

Thanks,
Sachin

code14.zip

Murugan [Syncfusion]
Replied On November 21, 2006 06:49 PM

Hi Sachin,

We are currently working on this issue. We will update the details soon.

Thanks,
Murugan P.S

Murugan [Syncfusion]
Replied On November 22, 2006 10:10 AM

Hi Sachin,

I have gone through the sample code. I think there is some problem when converting stream to String or XMLElement object. Herewith I have attached the sample for your requirement. In this sample we have saved the dockstate and stored the XML output in a String variable and used whenever we want to load the dockstate. Please go through the sample and let me know if the issue is resolved.
 Docking_XML.zip
Thanks,
Murugan P.S

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.

;