RadTicker not working after update from Ajax

3 posts, 0 answers
  1. Hendrik Johns
    Hendrik Johns avatar
    10 posts
    Member since:
    Aug 2005

    Posted 29 Dec 2010 Link to this post

    Hi There,

    I have a issue where I have a RadAjaxPanel and on this panel I have a Literal that holds the html from a function that creates some tables and RadTickers.
    The panel is updates every 10 sec. by a timer

    The first time the page is loaded and the Literal  is updated from the Page_Load event everythings works fine, but when the timer event runs after 10 sec. only tables are updated. if I look at the html that is generated it all looks fine, except the Radtikers don't start.

    If I do a normal postback everything also works fine.

    Do I need to update something in the ScriptManager from the Ajax event or does anyone have an idea on what could be wrong?

    Thanks,

    Hendrik

  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 30 Dec 2010 Link to this post

    Hi Hendrik,

    The RadTicker has a number of scripts that need to be run in order for the control to work. When the page is initially loaded, the scripts are evaluated by the browser automatically. However, after the Ajax request, the scripts are not automatically executed and the ticker control remains static. This does not happen if the control is added as a child of the ajax panel during the ajax request, because then the script manager knows that it needs to evaluate scripts. In your case the control is rendered as a literal, so it is ignored by the asp.net ajax script manager. If you want, you can manually execute the scripts in the ajax panel after the ajax request by using the $telerik.evalScripts(element) method from the Telerik static client library. The element parameter you pass should be the ajax panel HTML element or the literal container, which has the ticker inside.

    All the best,
    Lini
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hendrik Johns
    Hendrik Johns avatar
    10 posts
    Member since:
    Aug 2005

    Posted 30 Dec 2010 Link to this post

    Hi Lini,

    Thanks for the info. In the meen time I rewrote my function so that it does not use a literal but a placeholder and that did the job.

    Cheers,

    Hendrik
Back to Top