This is a migrated thread and some comments may be shown as answers.

RadComboBox VS2010 bug

17 Answers 546 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
alexandrupaul
Top achievements
Rank 1
alexandrupaul asked on 18 Dec 2009, 09:29 AM
When using RadCombobBox in an update panel the RadCombobBox freezes and the others control won't make any partial post back.
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

Sort by
0
Simon
Telerik team
answered on 18 Dec 2009, 03:29 PM
Hello alexandrupaul,

Do you receive any JavaScript errors when this happens?

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.
0
alexandrupaul
Top achievements
Rank 1
answered on 19 Dec 2009, 10:55 AM
Yes.

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.
0
Simon
Telerik team
answered on 19 Dec 2009, 11:43 AM
Hello alexandrupaul,

Could you use a debugger to see exactly where in the code the exception is thrown?

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.
0
alexandrupaul
Top achievements
Rank 1
answered on 19 Dec 2009, 02:10 PM
i can't understand much of this :)
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.


0
Accepted
Simon
Telerik team
answered on 19 Dec 2009, 03:22 PM
Hello alexandrupaul,

Thank you for providing the code.

This is exactly the bug with the new ASP.NET 4.0 scripts which we have recently fixed, so please download the Latest Internal Build and upgrade to resolve it on your side.

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.
0
DJINGAREY
Top achievements
Rank 1
answered on 19 Jun 2010, 08:31 AM
Hello, where i can found the fixe, because a have same probleme with telerik's version 2009.3.1016.35
0
Lenny_shp
Top achievements
Rank 2
answered on 21 Jun 2010, 03:51 PM
http://www.telerik.com/account/downloads/internal-builds.aspx
0
Blake Marriner
Top achievements
Rank 1
answered on 02 Jul 2010, 12:42 AM
Is there a fix available for the 2009.2 826 version?
0
Simon
Telerik team
answered on 06 Jul 2010, 12:52 PM
Hi Blake Marriner,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
David Walker
Top achievements
Rank 1
answered on 23 Aug 2010, 10:27 AM
Downloading the latest Telerik DLLs fixed this for me.

Thanks.
0
anurag
Top achievements
Rank 1
answered on 28 Aug 2011, 05:08 PM
Hi, I am also running into same issue. Can i please have the fix for version 2009.01.0402.20
0
Andrew
Top achievements
Rank 1
answered on 14 Mar 2012, 08:27 PM
Simon

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
0
Nicolaï
Top achievements
Rank 2
answered on 20 Aug 2012, 11:08 AM
Getting similar error... Is this back?
(2012.2.724.35)
a.RadComboBox.prototype._removeDropDown=function(){var c=this.get_dropDownElement().parentNode;
c.parentNode.removeChild(c);

0
Kalina
Telerik team
answered on 20 Aug 2012, 01:06 PM
Hello Nicolaï,

Could you please explain your scenario in more details and paste here some code to illustrate your implementation?

Regards,
Kalina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Nicolaï
Top achievements
Rank 2
answered on 20 Aug 2012, 01:21 PM
 Would be too long to go into details, as I'm not even sure what's causing it yet...
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...
0
Kalina
Telerik team
answered on 21 Aug 2012, 11:28 AM
Hello Nicolaï,

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
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ComboBox
Asked by
alexandrupaul
Top achievements
Rank 1
Answers by
Simon
Telerik team
alexandrupaul
Top achievements
Rank 1
DJINGAREY
Top achievements
Rank 1
Lenny_shp
Top achievements
Rank 2
Blake Marriner
Top achievements
Rank 1
David Walker
Top achievements
Rank 1
Rushiza Ms
Top achievements
Rank 1
anurag
Top achievements
Rank 1
Andrew
Top achievements
Rank 1
Nicolaï
Top achievements
Rank 2
Kalina
Telerik team
Share this question
or