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

Silverlight Chart and WebForms

1 Answer 94 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 04 Jun 2012, 07:59 PM
I am completely new to Silverlight and was wondering if I can integrate this easily into my standard .NET WebForms Application? 

In my project I am currently running the Telerik AJAX RadChart which is great, but the Silverlight version allowed for Zooming/Scroll and Tooltips enabled simultaneously, which the AJAX version did not.

Essentially I would like to have this Chart component be in Silverlight, but simply integrated into my existing .NET page (Similar to how you would embed a Flash object for use in your existing functionality)

Is this possible without a huge headache?  I am hoping to quickly translate the functionality of my existing AJAX RadChart into the Silverlight counterpart.

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 07 Jun 2012, 02:03 PM
Hi John,

The answer is yes, this is totally possible. In fact Silvelight was designed to be hosted in a ASP.NET pages.
By default if you create a new Silverlight application project Visual Studio will create 2 projects - one for SL and one for the hosting ASP.NET page. If you want you can integrate the existing functionality of your WebForms site with a Silverlight control(s).

I recommend that you watch this episode of Telerik.tv. In it the whole concept of integrating ASP and Silverlight is properly demonstrated in several scenarios.
You may also find this online demo helpful for achieving your scenario.

NOTE: The <asp:Silverlight> tag that was previously used with SL is obsolete. For SL 4 and 5 you should use the <object> tag. You may find more info about this as well as a sample project in this forum post. 
 
Regards,
Petar Kirov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or