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

Serializing and InitializeControlOnLoad

Thread ID:

Created:

Updated:

Platform:

Replies:

69182 Oct 17,2007 04:15 PM UTC Nov 1,2007 08:08 PM UTC Windows Forms 2
loading
Tags: Tools
ERobishaw
Asked On October 17, 2007 04:15 PM UTC

I'd like to use the dockingManager to allow users to move controls around, and then serialize / deserialize to a file.


The problem is, controls are added dynamically (through code) by users upon request.

The user can then move the contol wherever they want, dock/undock, etc...

I can serialize to file, but of-course when it deserializes from file, it can't find the controls.

The InitializeControlOnLoad seems like the event I need, and I can create a control using the name it provides, BUT WHAT DO I DO WITH THE CONTROL?

It seems like the event should pass an object reference that I can fill in for the control, and the deserializer will put the control where it is supposed to be.

As it is, I have no way of knowing where to dock the control. The event provides no clues.

What's the point of the InitializeControlOnLoad if you have to manually DockControl the control and don't know where to put it?

HELP.




J.Nagarajan [Syncfusion]
Replied On October 25, 2007 11:17 PM UTC

Hi ERobishaw ,

Thanks for your interest in Syncfusion products.

Issue: "When deserialize from file the docked controls are disappear "

We have tried this issue in an application. The following is the reproducing steps used for testing:

1. Run the attached sample.
2. Float a docking window.
3. Move floating window on the docked window.
4. Click Save button and close the form.
5. Run the form again and the docked controls are in visible.

Sample:
ahttp://websamples.syncfusion.com/samples/Tools.Windows/F69182/main.htm'>http://websamples.syncfusion.com/samples/Tools.Windows/F69182/main.htm">http://websamples.syncfusion.com/samples/Tools.Windows/F69182/main.htm

Please refer to the attached screen shot file.

http://www.syncfusion.com/Support/user/uploads/Image_1f4950ea.zip

Is it possible for you to upload us a minimal sample or modify the attached sample to reproduce the issue here? This will help us to analyze the issue further. It would very helpful to us if you provide us a video clip that shows the issue on your side.

Thanks for using Syncfusion products.

Regards,
Nagaraj


ERobishaw
Replied On November 1, 2007 08:08 PM UTC

I misunderstood the proper order of things.
I found another example you had left for another user that helped.

Basically I learned that to serialize / deserialize layout:
1) you dynamically create the controls FIRST
2) Enable Docking on the control (SetEnableDocking)
3) Load the layout from serialization.

I was going the other way around.

Thanks



>Hi ERobishaw ,

Thanks for your interest in Syncfusion products.

Issue: "When deserialize from file the docked controls are disappear "

We have tried this issue in an application. The following is the reproducing steps used for testing:

1. Run the attached sample.
2. Float a docking window.
3. Move floating window on the docked window.
4. Click Save button and close the form.
5. Run the form again and the docked controls are in visible.

Sample:
ahttp://websamples.syncfusion.com/samples/Tools.Windows/F69182/main.htm'>http://websamples.syncfusion.com/samples/Tools.Windows/F69182/main.htm">http://websamples.syncfusion.com/samples/Tools.Windows/F69182/main.htm

Please refer to the attached screen shot file.

http://www.syncfusion.com/Support/user/uploads/Image_1f4950ea.zip

Is it possible for you to upload us a minimal sample or modify the attached sample to reproduce the issue here? This will help us to analyze the issue further. It would very helpful to us if you provide us a video clip that shows the issue on your side.

Thanks for using Syncfusion products.

Regards,
Nagaraj



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

;