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

RadTicker not working after update from Ajax

2 Answers 30 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Hendrik Johns
Top achievements
Rank 1
Hendrik Johns asked on 29 Dec 2010, 02:55 PM
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 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 30 Dec 2010, 02:42 PM
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.
0
Hendrik Johns
Top achievements
Rank 1
answered on 31 Dec 2010, 12:09 AM
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
Tags
Rotator
Asked by
Hendrik Johns
Top achievements
Rank 1
Answers by
Lini
Telerik team
Hendrik Johns
Top achievements
Rank 1
Share this question
or