This is a migrated thread and some comments may be shown as answers.

Silverlight Chart compatibility with RadDock

1 Answer 42 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 2
Sean asked on 04 Dec 2010, 01:46 AM
Hi all,

I've been exploring various options for visualizing data inside of docking components. 

I had started with just using a Microsoft Chart Control inside of a RadDock. This works fine, but I was hoping to find better.
I moved on to using a RadChart inside of the RadDock. I have no need for 'zooming' functionality and due to some other limitations (e.g. performance issues with large datasets / wishing it would resize with the RadDock) I decided to explore what my options were with Silverlight Charts.

So, I spent some time ripping out the Silverlight RadChart displayed here: http://demos.telerik.com/aspnet-ajax/chart/examples/silverlight/defaultcs.aspx and moving it into my demo app. I ripped out basically everything except the actual chart and placed it inside of a Web User Control (.ascx). Through these means I was able to place the chart displayed into a RadDock.

I went to test my app and... the chart disappears the second I move a dock! And it never comes back. 

Are Silverlight controls incompatible with RadDock?

1 Answer, 1 is accepted

Sort by
0
Accepted
Pero
Telerik team
answered on 08 Dec 2010, 12:38 PM
Hello Sean,

The problem seems to be related to the way Silverlight framework works. If the HTML element, in which the Silverlight content resides, is moved in the DOM tree the Silverlight content gets refreshed.
This is actually how the Drag and Drop functionality of the RadDock control works. When the RadDock control is moved it is actually moved in the DOM tree. Basically, if the dock is docked to a zone, its wrapping HTML element is a child to the RadDockZone's element, and if floating it's a child to the <form/> element. So, if the user moves the dock from a zone to a zone, or undocks/docks it from/to a zone, the dock's element changes its parent.

To demonstrate that this issue is browser related behavior, I have created a sample project that moves the Silverlight content in the DOM tree. Please find it attached to the thread. I have searched for a solution to work around this issue, but couldn't find any.

Greetings,
Pero
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Dock
Asked by
Sean
Top achievements
Rank 2
Answers by
Pero
Telerik team
Share this question
or