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

Implement ajax + timer across multiple ascx controls

1 Answer 75 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Kevin Cauchi
Top achievements
Rank 1
Kevin Cauchi asked on 09 Nov 2011, 03:16 PM
Hi there, 

I am experiencing some difficulties implementing ajax across multiple controls. 

Here is my scenario:

  • Dashboard ASPX page
  • Timer
  • Statistics ASCX control
  •   Rad chart
  •       Combobox
  • Logs ASCX control
  •   Datagrid
  •     Checkbox
  • etc..

now... during the timer tick in the aspx page , i want to update ONLY the Rad chart from the statistics control and the datagrid in the logs control.

I have tried multiple things with the result of either a total page refresh or chart and datagrid not being updated.

Any help would be appreciated.

Thanks 

K

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 14 Nov 2011, 10:12 AM
Hello Kevin,

To achieve your goal, you can use RadAjaxManager. On Page_Load or Page_PreRender add dynamic ajax settings where the timer updates the desired controls. Then on Timer.Tick call your server-side code for updating the controls.
Additionally, you can reference the below demos:
http://demos.telerik.com/aspnet-ajax/ajax/examples/common/ajaxifytimer/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/usercontrol/defaultcs.aspx

All the best,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Ajax
Asked by
Kevin Cauchi
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or