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

How to put telerik silverlight controls in ASP.NET AJAX enabled site?

9 Answers 284 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Saad
Top achievements
Rank 1
Saad asked on 12 Dec 2008, 06:15 AM
I want to put up a telerik silverlight controls in my ASP.NET AJAX enabled website, along with the rad asp.net ajax controls....hot to do that? Please guide me!

9 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 15 Dec 2008, 12:17 PM
Hi saadi,

I suggest reading the following tutorial that contains instructions about using Silverlight and HTML/Javascript together:
http://silverlight.net/quickstarts/htmlbridge1.aspx

Best wishes,
Valeri Hristov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
John Davis
Top achievements
Rank 2
answered on 22 Mar 2009, 02:59 PM
Valeri,

Also I, and surely many other Telerik customers, want to use Silverlight controls in asp.net applications.

It appears rather complex to follow procedures at the "guidance link".

Could you provide a demo like the current silverlight demo but showing the Silverlight controls in asp.net applications?
It would help so much.  Even such a demo with just ONE Telerik Silverlight control would be helpful.
If possible, show a Telerik Silverlight control  running as part of a user control.

I was able to run the silverlight demo on my developer pc but it is not clear how to set up these examples in a normal asp.net application.

I am most interested in seeing the following in an asp.net application:

http://demos.telerik.com/silverlight/default.aspx#Chart/Gallery/StackedBar

http://demos.telerik.com/silverlight/default.aspx#Chart/Gallery/Line

http://demos.telerik.com/silverlight/default.aspx#Chart/DrillDown

Steve

0
Giuseppe
Telerik team
answered on 23 Mar 2009, 08:36 AM
Hi John,

We would suggest you to review this code library project here that demonstrates integration of the Silverlight chart control in ASP.NET application. You can find runnable demo attached there as well.

Let us know if you have any specific questions on the implementation.


Kind regards,
Manuel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
John Davis
Top achievements
Rank 2
answered on 23 Mar 2009, 03:29 PM
Manuel,

Thank you.  This is the kind of example I was looking for.

Can you help me run it?  I get a black screen with message "No Data Series".

When I debug execution I see execution of parts of Default.aspx.cs and ChartUserControl.aspx.cs

But nothing is executed in Page.xaml.cs

Steve
0
Giuseppe
Telerik team
answered on 25 Mar 2009, 12:19 PM
Hi John,

Indeed it seems that due to a glitch in the connection string in the web.config it is possible that in some scenarios the dbfile is not attached correctly onto the SQLEXPRESS instance and thus the web service does not feed the chart control with data.

We have attached a modified version of the application that should behave as expected and we will update the zip in the code library as well.

Let us know if the problem persists.


Best wishes,
Manuel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
John Davis
Top achievements
Rank 2
answered on 28 Mar 2009, 03:48 PM
Thank you for the updated project. 

Still I get  a black screen with message "No Data Series".

My goal is to set up a graph in an asp.net web application that uses Sql Server 2008.  In my application, data for controls such as graphs, grids, etc. is  retrieved from the database using Linq and put into business objects (collections of programmer-defined entities) for use by controls.

Therefore the most useful example would employ programmer-defined business objects that separate (insulate) the graph control from the details of the database retrieval, and it would be based on SQL Server Standard.  The current example uses a data service technique with which I am not familiar and it seems there is not a clean separation of the graph from the details of the database retrieval code. To get the example working for me may require me to study and debug the database interaction when I would rather focus on the graph. Effort devoted to learning how this type of database interaction works is a distraction that will not help me in my work.

Another issue is I use SQL Server 2008 standard, whereas the example uses SQL Server Express.  This difference may be causing problems in my running the example project.

Probably many other Telerik customers are in a situation similar to mine and would benefit from an example such as I am suggesting.

Steve
0
Giuseppe
Telerik team
answered on 31 Mar 2009, 04:17 PM
Hello John,

We have stripped down the ADO.NET Data Service logic and we have attached a modified sample application that demonstrates databinding the chart control to a list of custom business objects. You can easily replace the RadChart.ItemsSource passed to the control with the result of a LINQ query or any IEnumerable data object you would like to retrieve from a database, web service, data service, etc as the control is data-agnostic and works with any IEnumerable source passed to it.

Hope this helps.


Best wishes,
Manuel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
John Davis
Top achievements
Rank 2
answered on 31 Mar 2009, 09:30 PM
Manuel, This example works on the first try!  It will be very helpful in adoping this control.  Thanks.
Steve
0
Tony Fabian
Top achievements
Rank 1
answered on 20 Jul 2009, 08:06 PM
removed by user
Tags
General Discussions
Asked by
Saad
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
John Davis
Top achievements
Rank 2
Giuseppe
Telerik team
Tony Fabian
Top achievements
Rank 1
Share this question
or