ASP.NET Silverlight Controls

2 posts, 0 answers
  1. ManniAT
    ManniAT avatar
    885 posts
    Member since:
    Nov 2003

    Posted 13 Mar 2009 Link to this post

    Hi,

    I hope I'm not in the wrong place - I think to remember there was a forum section "product suggestions" - but I could not find it anymore.
    So if I placed this post wron feel free to move it.

    Let me first start with the scenario I'm currently working on.
    I have a website which provides (beside other things of course :)) something like the telerik "your account" page.
    There I also have "days left until" progress indicator.
    My page MUST run in normal HTML and don't want to force my users to install silverlight.
    So I end up where I've been years ago with Flash.
    Check if the addon (FlashPlayer, Silverlight) is available - if not I display my page in pure HTML.
    For this I built a "linear gauge aspx usercontrol".

    Now when it comes up to silverlight I hide the aspx.gauge - instead I show a silverlight control.
    I think this will be a very common scenario in the next months (years). And even if MS keeps right with their assumptions (everyone will have silverlight) - we will still have the need to display HTML apps.

    And even if anybody has silverlight on his box I think there will be a lot of scenarios where I don't build a full SL application.
    Instead I build a traditional APS.net app - hosting some silverlight controls.

    How does this look out of the box?
    <myCtrl:MyThing ID="noSilver" TotalDays="300" CurrentDays="120" Visible="true"....  
    <asp:Silverlight ID="gotSilver" InitParameters="TotalDays=300, CurrentDays=120"... Visible="false" 
     
    ....Page_Load(...) {  
    if(IFoundSilverLight)  {  
       noSilver.Visible=false;  
       gotSilver.Visible=true;  
    ... 

    What else do I have to do?
    I add a silverlight project to my site - build a control there - place a RadGauge on this control, check the parameters I got and hand it over to the gauge.

    What I think would be great is something like this:
    <telerik:AspNetSilverGauge MinValue="0" MaxValue="300" Value="120" Skin="Black"... 

    Maybe Gauge is not the best sample since it normally uses lots of XAML customization.
    But for controls like Grid or other which provide good functionality out of the box I guess this approach could help a lot.

    Currently I wrap my Silverlight in a custom apsx control so that I can achieve almost what i suggest here.
    But it is a lot of (stupid implementing interfaces, scripthandler and so on) work for each and every control I want to use.

    I think it would be great to have a set of telerik ASP_Silverlight controls which I just drag on my page and find them exposing the most common properties and events so that they are simply useable in an ASP.NET application.

    Regards

    Manfred
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 16 Mar 2009 Link to this post

    Hello Manfred,

    Thank you for contacting us.

    Indeed the scenario you are describing (rendering Silverlight or HTML content based on the availability of the Silverlight plugin on specific user machine) will be common until there is really strong adoption of the technology.

    We will forward your feedback to our developers, however, for the time being we do not have concrete plans to develop a whole suite of ASP.NET wrappers that would eliminate the need to wrap the Silverlight controls manually inside ASP user controls. In fact, there was internal discussion specifically on the RadGauge case whether such wrapper is viable option but as you correctly noted the gauge control provides and depends on the rich options available through XAML customization so it would be very hard to expose this kind of functionality in the ASP.NET user control.


    Kind regards,
    Manuel
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top