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
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
0
Jon
Top achievements
Rank 1
answered on 16 Nov 2010, 11:47 AM
Helps if I attach the code!
Codebehind
webpage
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 SubEnd Classwebpage
<%@ 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"><html xmlns="http://www.w3.org/1999/xhtml" ><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
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
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
Roughly how long till the SP1 release - are we talking a couple of weeks or early 2011?
Regards,
Jon
0
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
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
Do you have a date for this release as yet as I'm having a similar issue...
Regards
Cliff
0
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
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
Cheers,
Jon