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

Ajax Questions

4 Answers 159 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Rational Animal
Top achievements
Rank 1
Rational Animal asked on 08 Oct 2007, 06:49 PM
I'm just starting to ajaxify the stuff that we already have working and I'm running into some weird things:

1.  I cannot for the life of me get a javascript to force an ajax request from a AjaxPanel. I do this <%=radPnl.ClientID%>.AjaxRequest(null); and it always comes back with a script error that the object doesn't have that method.  How do I get it to work?

2. Where did the timer stuff go that was in the original Telerik controls for setting timers?  Right now I've made it refresh periodically using a microsoft timer inside the ajax panel which seems to work ok, but I don't think it's optimal. (and it won't display the loading panel.)

3. I'm looking for an example of ajaxifying a multipage.  Basically I want to have a tab control that loads the pages dynamically.  Further, I don't want the code that loads right now on the Page_Load of my user controls to fire at all until they are requested which is happening right now. I'm a little confused as to how this is supposed to work.

Thanks!

4 Answers, 1 is accepted

Sort by
0
plamen
Top achievements
Rank 1
answered on 10 Oct 2007, 12:05 PM
hi :)

Up to your Ajax questions:
  1. You can use the RadAjaxManager/RadAjaxPanel control to initiate your own AJAX requests on the client. It gives you the possibility to add AJAX functionality to controls that are not specially designed to make AJAX requests. In this example you can see how to do this.
  2. Timer in Panel - Online example; Timer with Manager - online example; AJAX Loading Panel - online example
  3. Dynamic loading of user controls with AJAX is also discussed in the following online help resource: RadAjax help -> How-To -> Loading User Controls with AJAX



Thank you...
<John:Peel />
0
Rational Animal
Top achievements
Rank 1
answered on 12 Oct 2007, 05:47 PM
The problem with these samples is that they don't use Prometheous and I don't see an ajax timer in Prometheous....
0
plamen
Top achievements
Rank 1
answered on 15 Oct 2007, 07:19 AM
hi

You can use the asp ajax timer control. The Timer control enables you to perform postbacks at a specified interval. When you use the Timer control as a trigger for an RadAjaxPanel control, the RadAjaxPanel control is updated by using an asynchronous, partial-page update.

            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px"
                <asp:Timer Enabled="true" Interval="2000" ID="Timer1" runat="server" OnTick="Timer1_Tick"
                </asp:Timer>      
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>        
            </telerik:RadAjaxPanel> 



More infoemation about Prometheus can be found at:

Regards...
<John:Peel />
0
Rational Animal
Top achievements
Rank 1
answered on 15 Oct 2007, 01:15 PM
Ok, that's what I was doing, but I was sure I was wrong and should be using one of your controls... thanks though!
Tags
Ajax
Asked by
Rational Animal
Top achievements
Rank 1
Answers by
plamen
Top achievements
Rank 1
Rational Animal
Top achievements
Rank 1
Share this question
or