This happens also with RadAjaxPanel and only in Visual Studio 2010 beta2.
When removing the RadComboBox everything works as expected.
In VS2008 works as expected.
Ex.
WebForm1.aspx
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %> |
| <%@ 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"> |
| <head runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"> |
| </telerik:RadScriptManager> |
| <asp:UpdatePanel ID="Upd1" runat="server"> |
| <ContentTemplate> |
| <div> |
| <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"> |
| <asp:ListItem>aaaaa</asp:ListItem> |
| <asp:ListItem>vvvvvv</asp:ListItem> |
| <asp:ListItem>ccccc</asp:ListItem> |
| <asp:ListItem>dddddd</asp:ListItem> |
| <asp:ListItem>eeewqewq</asp:ListItem> |
| </asp:DropDownList> |
| <br /> |
| <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> |
| <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /> |
| <br /> |
| <telerik:RadComboBox ID="RadComboBox1" Runat="server"> |
| <Items> |
| <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" |
| Value="RadComboBoxItem1" /> |
| <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" |
| Value="RadComboBoxItem2" /> |
| <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" |
| Value="RadComboBoxItem3" /> |
| <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem4" |
| Value="RadComboBoxItem4" /> |
| <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem5" |
| Value="RadComboBoxItem5" /> |
| <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem6" |
| Value="RadComboBoxItem6" /> |
| <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem7" |
| Value="RadComboBoxItem7" /> |
| </Items> |
| </telerik:RadComboBox> |
| </div> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| </div> |
| </form> |
| </body> |
| </html> |
WebForm1.aspx.cs
| using System; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Web; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| namespace WebApplication1 |
| { |
| public partial class WebForm1 : System.Web.UI.Page |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| } |
| protected void Button1_Click(object sender, EventArgs e) |
| { |
| TextBox1.Text = DropDownList1.SelectedValue; |
| } |
| } |
| } |
17 Answers, 1 is accepted
Simon
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
Timestamp: Sat, 19 Dec 2009 10:50:07 UTC
Message: Object doesn't support this property or method
Line: 3464
Char: 67
Code: 0
URI: http://localhost:2919/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a363aef93-d081-4288-a122-fdd681803f66%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1103.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a4552b812-caf7-4129-9b53-8f199b5bce6c%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3aaa288e2d
The error is simple to remake.
If you want i can send you the entire application.
By the way, i put in my webconfig file <pages clientIDMode= "AutoID"></pages> , without this the update panel won't work on content pages with or without RadComboBox.
But the error is the same without tthe clientIDMode set.
Thank you.
Kind regards,
Simon
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
this is the function where it happens
| _removeDropDown:function(){var c=this.get_dropDownElement().parentNode; |
| c.parentNode.removeChild(c); |
| if(this._disposeChildElements&&typeof(Sys.WebForms)!="undefined"){Sys.WebForms.PageRequestManager.getInstance()._destroyTree(c); |
| }if(!$telerik.isSafari){c.outerHTML=null; |
| }this._dropDownElement=null; |
| } |
if(this._disposeChildElements&&typeof(Sys.WebForms)!="undefined")
{
Sys.WebForms.PageRequestManager.getInstance()._destroyTree(c);
}
i have added watch on c and Sys.WebForms.PageRequestManager.getInstance() and both are defined.
i think the _destroyTree function is not defined.
when i add a watch on the entire " Sys.WebForms.PageRequestManager.getInstance()._destroyTree(c); " throws Object doesn't support this property or method.
Greetings,
Simon
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
You could use a patch to resolve the issue with the version you have.
Please see the attached page for the code of the patch - comments indicate when you need which part of the patch.
Regards,
Simon
the Telerik team
Thanks.
But its work fine in my local server and it is not work online
Message: Object doesn't support this property or method
Line: 103
Char: 1
Code: 0
URI: WebResource.axd?d=UEt_DAQy1EwIs0IrgF-raXSFot6Gmmi7ojgVOH1-ZQRouiOqgBxnxNde379Tr01x-MhUCvtt2Ue6JSjH0qt_gYv9Hvg-taXls3UoSTCIfDdPGSmt9xANUohEOR1IrP4ma_0elBF3j4jKoTLj8tOXwYdpym7NDa4H2f46zzDinnWbnTcb8gej6d6bj0jSKU5m0&t=634261042500000000
Message: Object doesn't support this property or method
Line: 103
Char: 1
Code: 0
URI: /WebResource.axd?d=UEt_DAQy1EwIs0IrgF-raXSFot6Gmmi7ojgVOH1-ZQRouiOqgBxnxNde379Tr01x-MhUCvtt2Ue6JSjH0qt_gYv9Hvg-taXls3UoSTCIfDdPGSmt9xANUohEOR1IrP4ma_0elBF3j4jKoTLj8tOXwYdpym7NDa4H2f46zzDinnWbnTcb8gej6d6bj0jSKU5m0&t=634261042500000000
Message: Object doesn't support this property or method
Line: 103
Char: 1
Code: 0
URI: /WebResource.axd?d=UEt_DAQy1EwIs0IrgF-raXSFot6Gmmi7ojgVOH1-ZQRouiOqgBxnxNde379Tr01x-MhUCvtt2Ue6JSjH0qt_gYv9Hvg-taXls3UoSTCIfDdPGSmt9xANUohEOR1IrP4ma_0elBF3j4jKoTLj8tOXwYdpym7NDa4H2f46zzDinnWbnTcb8gej6d6bj0jSKU5m0&t=634261042500000000
I tried applying the content of the Default.aspx file you so kindly provided in the zip file. Unfortunately, after uncommenting the section and copying it to the page that experienced the problem, it had no effect.
Andrew
(2012.2.724.35)
a.RadComboBox.prototype._removeDropDown=function(){var c=this.get_dropDownElement().parentNode;
c.parentNode.removeChild(c);
Could you please explain your scenario in more details and paste here some code to illustrate your implementation?
Regards,
Kalina
the Telerik team
Was mainly checking if this issue is somehow back...
The short version:
- a few controls in a panel (a radcombo among them).
- using javascript and appendChild to move the panel to a tablecell onclick.
- then moving the panel back out after a small async postback...
It used to work very well, did some upgrades, many changes, telerik updates included, and suddenly I realize (user report) that it's not working so well anymore... Not sure how to debug it. The javascript errors go from [above mentionned] to uncomprehensible errors in MS ajax code...
As I understand - there have been a lot of changes in your project and that is why you face some difficulties researching the issue.
Let me suggest you create one simplified page with one RadComboBox on it and start adding your custom logic step by step.
After every step - please run the page and try to reproduce the issue.
Once you reproduce it - you will be able to detect what causes it.
Regards,
Kalina
the Telerik team