RadComboBox VS2010 bug

18 posts, 1 answers
  1. alexandrupaul
    alexandrupaul avatar
    9 posts
    Member since:
    Nov 2009

    Posted 18 Dec 2009 Link to this post

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


  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 18 Dec 2009 Link to this post

    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.
  3. alexandrupaul
    alexandrupaul avatar
    9 posts
    Member since:
    Nov 2009

    Posted 19 Dec 2009 Link to this post

    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.
  4. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 19 Dec 2009 Link to this post

    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.
  5. alexandrupaul
    alexandrupaul avatar
    9 posts
    Member since:
    Nov 2009

    Posted 19 Dec 2009 Link to this post

    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.


  6. Answer
    Simon
    Admin
    Simon avatar
    2281 posts

    Posted 19 Dec 2009 Link to this post

    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.
  7. DJINGAREY
    DJINGAREY avatar
    3 posts
    Member since:
    Sep 2008

    Posted 19 Jun 2010 Link to this post

    Hello, where i can found the fixe, because a have same probleme with telerik's version 2009.3.1016.35
  8. Lenny_shp
    Lenny_shp avatar
    343 posts
    Member since:
    Jul 2006

    Posted 21 Jun 2010 Link to this post

    http://www.telerik.com/account/downloads/internal-builds.aspx
  9. Blake Marriner
    Blake Marriner avatar
    9 posts
    Member since:
    Jul 2005

    Posted 01 Jul 2010 Link to this post

    Is there a fix available for the 2009.2 826 version?
  10. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 06 Jul 2010 Link to this post

    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
  11. David Walker
    David Walker avatar
    2 posts
    Member since:
    Aug 2009

    Posted 23 Aug 2010 Link to this post

    Downloading the latest Telerik DLLs fixed this for me.

    Thanks.
  12. anurag
    anurag avatar
    1 posts
    Member since:
    Feb 2011

    Posted 28 Aug 2011 Link to this post

    Hi, I am also running into same issue. Can i please have the fix for version 2009.01.0402.20
  13. Andrew
    Andrew avatar
    1 posts
    Member since:
    Mar 2012

    Posted 14 Mar 2012 Link to this post

    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
  14. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 20 Aug 2012 Link to this post

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

  15. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 20 Aug 2012 Link to this post

    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.
  16. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 20 Aug 2012 Link to this post

     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...
  17. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 21 Aug 2012 Link to this post

    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.
Back to Top