i'm new to the ajaxmanager and i'm doing a test but its not working.
in the ddl event i'm changing the text value of TextBox1
what am i doing wrong?
i checked to see if thats the only ajaxmanager on page and it is.
i have the scriptmanager on page also.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="DropDownList1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="divTest"> </telerik:AjaxUpdatedControl> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" onselectedindexchanged="DropDownList1_SelectedIndexChanged"> <asp:ListItem> test1</asp:ListItem> <asp:ListItem> test2</asp:ListItem> <asp:ListItem> test3</asp:ListItem> </asp:DropDownList> <br /> <br /> <br /> <div style="border:solid 1px red; height:300px;" id="divTest" runat="server"> <asp:Panel ID="panelTest" runat="server"> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </asp:Panel> </div>
Hi,
I have 3 tabs. The first 2 tabs take user input, and the final third tab displays a calcution according to the previous 2 tabs' data. I am using the OnTabClick event to check which tab the user has clicked, and if it happens to be the third then we process the users input and display the final calculation (this takes a bit of time since we are hitting the database). The tab strip is ajaxified and displays my LoadingPanel when the OnTabClick event is fired. It works great but the only issue is that the LoadingPanel also displays for the other tab clicks, where no data is needed to be calculated. Is there a way to only display the LoadingPanel for a specific TabClick instead of all tabs where some are not needed to perform calculations but others are?
My ajax manager proxy is setup as such (which causes all tabs to display the LoadingPanel):
<rad:RadAjaxManagerProxy runat="server"> <AjaxSettings> <rad:AjaxSetting AjaxControlID="UniverseTab"> <UpdatedControls > <rad:AjaxUpdatedControl ControlID="UniverseTab" /> <rad:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel" /> </UpdatedControls> </rad:AjaxSetting> </AjaxSettings> <AjaxSettings> <rad:AjaxSetting AjaxControlID="RadMultiPage1"> <UpdatedControls> <rad:AjaxUpdatedControl ControlID="RadMultiPage1" /> </UpdatedControls> </rad:AjaxSetting> </AjaxSettings> </rad:RadAjaxManagerProxy>Thanks,
Patrick
When I go to use the image tool for the first time, it takes quite some time to eventually load. Once it’s loaded, it seems to come back rather quickly the second time….but the initial delay is about 30 seconds….any idea what the problem might be? I found these two errors in my junk folder earlier, but I didn’t know if it was related to the delay I was experiencing.
My folder contains around 30 images.
Thanks in Advance

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="testloadingpage.aspx.cs" Inherits="testloadingpage" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!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" dir="rtl"><head id="Head1" runat="server"> <link rel="stylesheet" type="text/css" href="css/Style.css" media="screen" /> <title>mailing lists</title></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="Button1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGridMailingList" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="RadGridMailingList"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGridMailingList" UpdatePanelHeight="" LoadingPanelID="RadAjaxLoadingPanel1"/> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <div id="mailingList" class="contentBlock"> <div class="submitButton"> <asp:Button ID="Button1" runat="server" Text="run query" OnClick="Button1_Click" /> </div> <!-- content start --> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> <telerik:RadGrid ID="RadGridMailingList" Width="97%" AllowSorting="True" PageSize="15" AllowPaging="True" runat="server" ShowStatusBar="True" GridLines="Vertical" OnNeedDataSource="RadGrid1_NeedDataSource"> <MasterTableView CommandItemDisplay="Top"> </MasterTableView> </telerik:RadGrid> </div> <!-- content end --> </form></body></html>When I click the LinkButtom, I get an error message,” Microsoft JScript runtime error: Object doesn't support this property or method”.
How to solve this problem?
Many thanks for your replying.
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title>Untitled Page</title> |
| <script type="text/javascript"> |
| <!-- |
| function AddLink() |
| { |
| //debugger |
| window.radopen("AddLink.aspx", "AddLink"); |
| } |
| --> |
| </script> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <asp:ScriptManager ID="ScriptManager1" runat="server" /> |
| <div> |
| <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Telerik"> |
| <Windows> |
| <telerik:RadWindow ID="AddLink" Title="AddLink" ReloadOnShow="true" Modal="true" |
| VisibleStatusbar="false" Behaviors="Default" runat="server" Height="180"> |
| </telerik:RadWindow> |
| </Windows> |
| </telerik:RadWindowManager> |
| </div> |
| <asp:LinkButton ID="LinkButton_AddLink" runat="server" OnClientClick="AddLink();return false;">AddLink</asp:LinkButton> |
| </form> |
| </body> |
| </html> |
function conditionalPostback(sender, eventArgs) { //The variable 'theRegexp' is never used var theRegexp = new RegExp("\.UpdateButton$|\.PerformInsertButton$", "ig"); var eventArgument = eventArgs.get_eventArgument(); if (eventArgument.indexOf("Update") > -1 || eventArgument.indexOf("PerformInsert") > -1) { if (upload && upload.getFileInputs()[0].value != "") { eventArgs.set_enableAjax(false); } } } if (eventArgs.get_eventTarget().match(theRegexp)){ //Disable AJAX functionality }function conditionalPostback(sender, eventArgs) { //This is the corrected version var theRegexp = new RegExp("\.UpdateButton$|\.PerformInsertButton$", "ig"); var eventArgument = eventArgs.get_eventArgument(); //this variable may not be needed either if (eventArgument.match(theRegexp)) //or eventArgs.get_eventTarget().match(theRegexp) { if (upload && upload.getFileInputs()[0].value != "") { eventArgs.set_enableAjax(false); } } }