Ajax Questions

5 posts, 0 answers
  1. Rational Animal
    Rational Animal avatar
    47 posts
    Member since:
    Oct 2006

    Posted 08 Oct 2007 Link to this post

    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!
  2. John
    John avatar
    416 posts
    Member since:
    Oct 2006

    Posted 10 Oct 2007 Link to this post

    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 />
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rational Animal
    Rational Animal avatar
    47 posts
    Member since:
    Oct 2006

    Posted 12 Oct 2007 Link to this post

    The problem with these samples is that they don't use Prometheous and I don't see an ajax timer in Prometheous....
  5. John
    John avatar
    416 posts
    Member since:
    Oct 2006

    Posted 15 Oct 2007 Link to this post

    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 />
  6. Rational Animal
    Rational Animal avatar
    47 posts
    Member since:
    Oct 2006

    Posted 15 Oct 2007 Link to this post

    Ok, that's what I was doing, but I was sure I was wrong and should be using one of your controls... thanks though!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017