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

RadButton and AJAX Control Refreshing

8 Answers 207 Views
Button
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 16 Nov 2010, 11:46 AM
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

8 Answers, 1 is accepted

Sort by
0
Jon
Top achievements
Rank 1
answered on 16 Nov 2010, 11:47 AM
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>
0
Accepted
Pero
Telerik team
answered on 16 Nov 2010, 06:11 PM
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.
0
Jon
Top achievements
Rank 1
answered on 17 Nov 2010, 09:24 AM
Thanks Pero,

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

Regards,

Jon
0
Pero
Telerik team
answered on 17 Nov 2010, 09:57 AM
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.
0
Jon
Top achievements
Rank 1
answered on 17 Nov 2010, 11:10 AM
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 ;)
0
Cliff Gibson
Top achievements
Rank 1
answered on 13 Dec 2010, 12:42 PM
Hi

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

Regards
Cliff
0
Bozhidar
Telerik team
answered on 13 Dec 2010, 12:50 PM
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.
0
Jon
Top achievements
Rank 1
answered on 13 Dec 2010, 01:46 PM
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
Tags
Button
Asked by
Jon
Top achievements
Rank 1
Answers by
Jon
Top achievements
Rank 1
Pero
Telerik team
Cliff Gibson
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or