Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
201 views
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>
Pavlina
Telerik team
 answered on 23 Feb 2011
1 answer
70 views
I have a problem with Editor in IE.

The editor propery enable is set to "False". When I set it to "True" in codebehind, the first render of the Editor far exceeds the size set for this control (445 pixels). If I disable and enable again, the look is fine.

Here is the screenshot for the first loading and subsequent loading.

I'm using RadControls for ASP.NET AJAX Q2 2009 SP1

Have you any idea what can cause this bug?
Thank you in advance
Rumen
Telerik team
 answered on 23 Feb 2011
2 answers
94 views

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

Patrick
Top achievements
Rank 1
 answered on 23 Feb 2011
8 answers
105 views
Dears;

iam using RadTabStrip with multipage views , and i would like to increase the page performance
kindly what do suggest ??
shall i use user controls instead of multipage view ? if so , will it make huge differance ?
Also , am thinking using RadCompression

Thanks in advance 
Yana
Telerik team
 answered on 23 Feb 2011
3 answers
42 views

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

Rumen
Telerik team
 answered on 23 Feb 2011
3 answers
135 views
i have a radgrid and an asp button which loads the data to the radgrid from the database, i want to display a waiting icon until the server response with the data to fill the grid, i am trying this and it doesn't display anything:
<%@ 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>
Pavlina
Telerik team
 answered on 23 Feb 2011
5 answers
125 views

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> 
Phil
Top achievements
Rank 2
 answered on 23 Feb 2011
1 answer
159 views
Hi!
I was working on asp.net application in VS2008 and asp.net ajax controls version 2010.2.929.35 and it was working fine.
A cuple of days ago I installed the lastest version of asp.net ajax controls (ver 2010.3.1317.35) and I upgrade my solution with this version, and after that the site begun to throw javascript exceptions: sys is undefined

The first exception is:
IExplorer error:
  • Línea: 67
  • Error: Error al cargar el marco de trabajo de cliente ASP.NET Ajax.

In Debug mode this is the exception:
<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('Error al cargar el marco de trabajo de cliente ASP.NET Ajax.');
//]]>

After that, all exception are: 'Sys' no está definido (sys is undefined).

If I go back to the previous version, It starts to work again.

Thanks in adavnce,
Alejandro
Prangadj
Top achievements
Rank 1
 answered on 23 Feb 2011
1 answer
117 views
Hi,

I am using RadControls for ASP.NET AJAX Q3 2010.
I my application scenario i want to create Sliding Panel Bar & and inside Sliding Panel Bar there is drag drop control.

Drag drop control using <ajaxToolkit:ToolkitScriptManager></ajaxToolkit:ToolkitScriptManager>

but Sliding Panel required <telerik:RadScriptManager></telerik:RadScriptManager>

I am using it like this

<telerik:RadScriptManager ID="ScriptManager" runat="server">
        <Scripts>
            <asp:ScriptReference Name="PreviewScript.debug.js" Assembly="Microsoft.Web.Preview" />
            <asp:ScriptReference Name="PreviewDragDrop.debug.js" Assembly="Microsoft.Web.Preview" />
            <asp:ScriptReference Path="~/Scripts/ItemDragDrop.js" />
        </Scripts>
</telerik:RadScriptManager>


but my application given an error:
Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.

If I use <ajaxToolkit:ToolkitScriptManager></ajaxToolkit:ToolkitScriptManager> there is no error with drag drop. But Slider Panel required <telerik:RadScriptManager></telerik:RadScriptManager>.

How to overcome this issue.
Please help me asap.
Regds.
Partha
Prangadj
Top achievements
Rank 1
 answered on 23 Feb 2011
1 answer
81 views
Hi,

I'm not sure where else to submit this so I figure I'd place it here.

There appears to be a minor omission in the JavaScript for the GridAttachmentColumn online example. Visit the example here.

Examine the conditionalPostback function: 

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);
        }
    }
}

Draw your attention to the variable named theRegexp which appears to be a Regular Expression container. The variable is defined, but it is never used. I suspect that it was supposed to have been used in the If block that follows, like this:

if (eventArgs.get_eventTarget().match(theRegexp)){
    //Disable AJAX functionality
}

...such that the final block actually reads like this:

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);
        }
    }
}

While the code that was there before would work too, it can prove to be a little confusing for people who aren't terribly familiar with JavaScript who would include that variable definition for no good reason.

Cheers,
John
Veli
Telerik team
 answered on 23 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?