Load on Demand?

9 posts, 0 answers
  1. Adam Hubble
    Adam Hubble avatar
    74 posts
    Member since:
    Jan 2008

    Posted 05 Jul 2009 Link to this post

    Hi, I'm currently loading some random ads into a region of pages using a repeater and a timer control. In order to ensure good page load times I am loading the timer and the timer then loads in the ads after the page has rendered in the browser. The timer then disables itself.

    While this approach works fine, there is a minor bug with scrolling interuption in IE browsers. Ideally I would like to use the telerik rotator control. I can't see anything built in to the control that would help me to replicate the behaviour I need. Are there any plans for this?

    Thanks,
    Matt
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 08 Jul 2009 Link to this post

    Hi Matt,

    We plan (it is already in our ToDo list) to allow asynchronous loading of rotator items in one of the future releases of the RadRotator control - I believe this is what you want to achieve.
    In case that your requirements are different, please send us some screenshots/video of the expected behavior. We will take a closer look over the requirements an provide you with an answer as soon as possible.

    Regards,
    Fiko
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Adam Hubble
    Adam Hubble avatar
    74 posts
    Member since:
    Jan 2008

    Posted 08 Jul 2009 Link to this post

    Hi Fiko,

    Yes this is what I want to achieve - asyncronous loading after the page has been rendered on the client.

    I have achieved it with the timer and a usercontrol, but I look forward to the Telerik solution.

    Thanks,
    Matt
  5. Anne-Marie
    Anne-Marie avatar
    1 posts
    Member since:
    Feb 2008

    Posted 09 Sep 2009 Link to this post

    When is Load on Demand scheduled for release?
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 10 Sep 2009 Link to this post

    Hello Anne,

    This feature is still in our ToDo list and it will be implemented in one of 2010's releases - most probably in Q1 2010.



    Regards,
    Georgi Tunev
    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.
  7. sayitfast
    sayitfast avatar
    57 posts
    Member since:
    Oct 2006

    Posted 18 Sep 2009 Link to this post

    This would be great!!!
  8. Adam Hubble
    Adam Hubble avatar
    74 posts
    Member since:
    Jan 2008

    Posted 03 Oct 2009 Link to this post

    If the content you want to dynamically load into a banner region does not need to have postback capability you can delay-load content using the new radxmlhttppanel to good effect. 

     

    <div id="adsRow">

     

     

    <telerik:RadXmlHttpPanel runat="server" ID="RadXmlHttpPanelAdverts" Value="3"

     

     

    OnServiceRequest="RadXmlHttpPanelAdverts_ServiceRequest">

     

     

     

    <asp:Panel ID="adsLoading" CssClass="adsLoading" runat="server">

     

     

     

    <asp:Image ID="adsLoadingImg" ImageUrl="~/App_Themes/Default/Images/adLoader.gif" runat="server" />

     

     

     

    <asp:Literal ID="loadingTxt" Text="<p>Loading...</p>" runat="server"></asp:Literal>

     

     

    </asp:Panel>

     

     

     

    </telerik:RadXmlHttpPanel>

     

     

     

    </div>

     


    <

     

    Telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

     

    <

     

    script language="javascript" type="text/javascript">

     

    window.setTimeout(loadUserProfile, 1000);

     

    function loadUserProfile() {

     

     

    var panel = $find("<%= RadXmlHttpPanelAdverts.ClientID %>");

     

    panel.set_value(

    "true");

     

    }

     

    </script>

     

     

    </Telerik:RadScriptBlock>

     



     

    Protected Sub RadXmlHttpPanelAdverts_ServiceRequest(ByVal sender As Object, ByVal e As RadXmlHttpPanelEventArgs)

     

     

    If e.Value = "true" Then

     

     

    If Not RadScriptManager.IsInAsyncPostBack Then

     

    LoadAdContent()

     

    End If

     

     

    End If

     

     

    End Sub

     

     


    Private
    Sub LoadAdContent()

     

    adsLoadingImg.Visible =

    False

     

    adsLoading.CssClass =

    ""

     

    loadingTxt.Visible =

    False

    If
    AuthHelper.IsAuthenticatedMember() Then

     

     

     

     

    Dim controlLoad As UserControl

     

    controlLoad =

    Me.LoadControl("~/AppLayouts/WebControls/AdvertControls/Member/Default/NoProfileMember.ascx")

     

     

    Me.adsLoading.Controls.Add(controlLoad)

     

     


    Else

     

     

     

     

    Dim controlLoad As UserControl

     

    controlLoad =

    Me.LoadControl("~/AppLayouts/WebControls/AdvertControls/Public/Default/NoProfilePublic.ascx")

     

     

    Me.adsLoading.Controls.Add(controlLoad)

     

     

    End If

     

     

    End Sub

     

  9. Peter Thomas
    Peter Thomas avatar
    1 posts
    Member since:
    Feb 2010

    Posted 07 Feb 2010 Link to this post

    Hi, is the load on-demand feature still slated for Q1 2010? Thanks
  10. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 11 Feb 2010 Link to this post

    Hello Peter,

    Due to tasks with higher priority, we postponed this feature for one of the following updates.

    Regards,
    Fiko
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017