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

10 posts, 0 answers
  1. Saad
    Saad avatar
    82 posts
    Member since:
    Oct 2008

    Posted 12 Dec 2008 Link to this post

    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!
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 15 Dec 2008 Link to this post

    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.
  3. DevCraft banner
  4. John Davis
    John Davis avatar
    119 posts
    Member since:
    Apr 2007

    Posted 22 Mar 2009 Link to this post

    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

  5. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 23 Mar 2009 Link to this post

    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.
  6. John Davis
    John Davis avatar
    119 posts
    Member since:
    Apr 2007

    Posted 23 Mar 2009 Link to this post

    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
  7. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 25 Mar 2009 Link to this post

    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.
  8. John Davis
    John Davis avatar
    119 posts
    Member since:
    Apr 2007

    Posted 28 Mar 2009 Link to this post

    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
  9. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 31 Mar 2009 Link to this post

    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.
  10. John Davis
    John Davis avatar
    119 posts
    Member since:
    Apr 2007

    Posted 31 Mar 2009 Link to this post

    Manuel, This example works on the first try!  It will be very helpful in adoping this control.  Thanks.
    Steve
  11. Tony Fabian
    Tony Fabian avatar
    4 posts
    Member since:
    Aug 2004

    Posted 20 Jul 2009 Link to this post

    removed by user
Back to Top
DevCraft banner