RadButton and AJAX Control Refreshing

9 posts, 1 answers
  1. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 16 Nov 2010 Link to this post

    Hi,

    I've found that while a RadButton will trigger AJAX calls - the loading panel will show and the codebehind code will all trigger, when it comes to updating controls on the webpage that doesn't happen.

    Interestingly adding some javascript to the responsescripts of the ajaxmanager does work.

    In the example that I've done below there are two buttons.  The first is a normal button and simply updates a div with the time.  The second button is a radbutton and this one when pressed should do the same as the normal button.  The codebehind works as does the response script BUT the time is not shown...

    Is there an easy to implement work around for this?

    Regards,

    Jon
  2. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 16 Nov 2010 Link to this post

    Helps if I attach the code!

    Codebehind
    Public Partial Class WebForm2
        Inherits System.Web.UI.Page
     
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
     
        End Sub
     
        Protected Sub uxFilterButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles uxFilterButton.Click
            datepanel.InnerText = Now().ToString("HH:mm:ss")
            RadAjaxManager1.ResponseScripts.Add("alert('normal button response scripts works');")
        End Sub
     
        Protected Sub uxFilterButton2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles uxFilterButton2.Click
            datepanel.InnerText = Now().ToString("HH:mm:ss")
            RadAjaxManager1.ResponseScripts.Add("alert('rad button response scripts works');")
        End Sub
    End Class

    webpage
    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm2.aspx.vb" Inherits="NJC.Amonet.Web.WebForm2" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
         <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
         
      <div id="datepanel" runat="server"></div>
    <asp:Button ID="uxFilterButton" runat="server" CausesValidation="False" CommandName="Filter" Text="Filter" />
    <telerik:RadButton ID="uxFilterButton2" runat="server" CausesValidation="False"  CommandName="Filter" Text="Apply Filter" Icon-PrimaryIconCssClass="rbSearch"  />
         <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="uxFilterButton">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="datepanel"/>
                        </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="uxFilterButton2">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="datepanel" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        </div>
        </form>
    </body>
    </html>
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Pero
    Admin
    Pero avatar
    1156 posts

    Posted 16 Nov 2010 Link to this post

    Hi Jon,

    We know about this issue, and it will be fixed for the upcoming release. More information and solution can be found here: http://www.telerik.com/community/forums/aspnet-ajax/button/problem-with-radajaxmanager-and-radbutton.aspx.

    Regards,
    Pero
    the Telerik team
    Browse the vast support resources we have to jumpstart 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.
  5. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 17 Nov 2010 Link to this post

    Thanks Pero,

    Roughly how long till the SP1 release - are we talking a couple of weeks or early 2011?

    Regards,

    Jon
  6. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 17 Nov 2010 Link to this post

    Hello Jon,

    The Q3 2010 SP1 is scheduled for the middle of December, 2010 (roughly from 10th - 15th Dec.). I cannot give you the exact date.

    Kind regards,
    Pero
    the Telerik team
    Browse the vast support resources we have to jumpstart 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.
  7. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 17 Nov 2010 Link to this post

    Thanks Pero,  given that it is going to be relatively soon I think that I'll hold fire changing the buttons till then.  Enough on my plate anyway ;)
  8. Cliff Gibson
    Cliff Gibson avatar
    45 posts
    Member since:
    Oct 2009

    Posted 13 Dec 2010 Link to this post

    Hi

    Do you have a date for this release as yet as I'm having a similar issue...

    Regards
    Cliff
  9. Bozhidar
    Admin
    Bozhidar avatar
    680 posts

    Posted 13 Dec 2010 Link to this post

    Hello Cliff,

    The Q3 Service Pack 1 will be released later this week and the the reported issue is fixed.

    Kind regards,
    Bojo
    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.
  10. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 13 Dec 2010 Link to this post

    Cliff the update is in the latest internal build version of the controls.  I'm using that and it seems to work fine...

    Cheers,

    Jon
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017