Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
370 views
Hi,

Can someone please tell me why I got the a javascript error when I click the "Refresh using ajaxPanel.ajaxRequest()" button the second time?

Thank you,

Vincent


Javascript Error:
Sys.ArgumentException: Value must not be null for Controls and Behaviors.    Parameter name:  element

Here are my codes:

WebForm1.aspx
        <asp:ScriptManager runat="server" ID="scriptMgr" /> 
          
        <uc1:UserControl1 ID="UserControl1" runat="server" />     
        <br /> 
          
        <asp:Button runat="server" ID="btnRefreshAjaxManager" Text="Refresh AjaxManager" /> 
          
        <telerik:RadAjaxManager runat="server" ID="ajaxMgr">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="btnRefreshAjaxManager">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="UserControl1"/>  
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager>    

UserControl1.ascx:
<script language="javascript">  
    function Refresh( controlId )  
    {  
        var panel = $find(controlId );  
        panel.ajaxRequest();  
    }  
</script> 
 
 
<telerik:RadAjaxPanel runat="server" ID="ajaxPanel" > 
    <asp:TextBox runat="server" ID="TextBox1" /> 
    <asp:Label runat="server" ID="Label1" /> 
    <br /> 
    <asp:Button runat="server" ID="btnRefreshAjaxPanel" Text="Refresh AjaxPanel" /> 
</telerik:RadAjaxPanel> 
 
<br /> 
<asp:Button runat="server" ID="btnRefreshJS" Text="Refresh using ajaxPanel.ajaxRequest()" /> 

UserControl1.ascx.cs
        protected void Page_Load(object sender, EventArgs e)  
        {  
            TextBox1.Text = DateTime.Now.ToString();  
 
            thisthis.Label1.Text = this.ajaxPanel.ClientID;  
 
            this.btnRefreshJS.OnClientClick = string.Format( "Refresh( '{0}' ); return false;", ajaxPanel.ClientID);  
 
        } 
Maria Ilieva
Telerik team
 answered on 07 Dec 2012
1 answer
55 views
1)how to sort tabs alphabeticaly in a tabstrip?  
Shinu
Top achievements
Rank 2
 answered on 07 Dec 2012
4 answers
96 views
Is there a way for me to style by a hidden resource/attribute?  Every time an event is written I also log which user enters it via a insert parameter that is assigned via page_load so the user never sees this field and its not part of the form.  I would assume I need to add it as a resource or attribute and then set the visibility to false and set the value to something if I want to make it work?
Plamen
Telerik team
 answered on 07 Dec 2012
6 answers
151 views
Hello,

With asp.net 4 and version 2010.3.1317.
It seems that CDN usage disable any css combine feature ? Dommage because my header is full of links (and my personnal head is tired with all this).

So what is the best to do: use CDN and get many file to lad or using a single file whitout CDN but with combining ?

Moreover I must tell that thye help file is very poor on this and we must spend hours on forums to get some idea of real feature....


Thanks
CS
Kate
Telerik team
 answered on 07 Dec 2012
6 answers
190 views
I am stucked at 1 point in the radscheduler.

I need to find out value of a control from InlineEditTemplate on the OnAppointmentUpdate event.

protected void RadScheduler1_AppointmentUpdate(object sender, ApponitmentUpdateEventArgs e )
{

}

in my InLineEditTemplate there is a radiobuttonlist control, i am not able to get the value selected in the radio button list.

Thanks in Advance
Plamen
Telerik team
 answered on 07 Dec 2012
1 answer
228 views

I have a radtextbox that I am updating the text with JavaScript (clientside). The new value shows on the page but if I access the control server side, it shows the old value. This control is not being reloaded server side.

JavaScript: this will set the new value which shows up on the web page

document.Form1.txtTotalCharge_text.value = document.Form1.txtHdTotalCharge.value

If I access txtTotalCharge.text on the server side, the old value shows up. The asp:textbox doesn't have this issue. Can anyone tell me how to fix this.

Milena
Telerik team
 answered on 07 Dec 2012
5 answers
254 views
Hello,

  On my webpage, I am using RadAsyncUpload and i'd like to have a description for each image the user upload. For that i need a textbox and the user can upload as many images as they want. What would be the best way to achieve this?

Appreciate the help
Thanks
Plamen
Telerik team
 answered on 07 Dec 2012
1 answer
63 views
I have a grid, and I want to export it to pdf and attach the file to an e-mail.

It seems like after calling ExportToPdf() the file is always opened. Is it possible to just save the pdf without opening it first?


Regards, Jill-Connie Lorentsen
Daniel
Telerik team
 answered on 07 Dec 2012
9 answers
197 views
Hello

I need to sub class the RadComboBox, and i want the good syntax to override the SelectedValue,

Cause i my value isn't find on the list , i want to get the error.

public override string SelectedValue
    {
        get { return _SelectedValue; }
        set { _SelectedValue = value; }
         
    }

thanks
Olivier,
Cat Cheshire
Top achievements
Rank 1
 answered on 07 Dec 2012
4 answers
146 views
I have used telerik rad grid client-side programmatic binding. Every thing working fine but when we export data to pdf, it is asking password. How to open this pdf?

Radgrid.AutoGenerateColumns = true;
       Radgrid.MasterTableView.AllowPaging = true;
       Radgrid.MasterTableView.IsItemInserted = true;
       Radgrid.ExportSettings.OpenInNewWindow = true;
       Radgrid.AllowFilteringByColumn = false;
       Radgrid.ExportSettings.ExportOnlyData = true;
       Radgrid.ExportSettings.HideStructureColumns = true;
       Radgrid.MasterTableView.HierarchyDefaultExpanded = false;
       Radgrid.MasterTableView.NestedViewTemplate = null;
       Radgrid.MasterTableView.HierarchyDefaultExpanded = false;
       Radgrid.MasterTableView.ClearChildEditItems();
       Radgrid.ExportSettings.FileName = filename;
       Radgrid.ExportSettings.Excel.Format = GridExcelExportFormat.Html;
       Radgrid.MasterTableView.ExportToPdf();
        

Thanks in advance.
Daniel
Telerik team
 answered on 07 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?