Error with RadComboBox after migrating to 4.0

4 posts, 0 answers
  1. Marcelo
    Marcelo avatar
    6 posts
    Member since:
    Feb 2013

    Posted 18 Feb 2013 Link to this post

    Hi,
    I'm working on an existing application that uses an old version of telerik controls (version 2008.3.1125.35). After migrating to net framework 4.0 i get an error when changing the value of the combobox.

    "Microsoft JScript runtime error: Object doesn't support this property or method"

    The issue seems to be related to an incompatibility of the radajaxmanager with the current framework.

    Any workaround to solve this issue?

    Any help would be really appreciated

    Thank you in advanced
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 19 Feb 2013 Link to this post

    Hello Marcelo,

    You might be getting this error message if you are using any of the properties available for the 2008.3.1125.35 version of the Telerik controls and that are changed for the latest version. Please take a look at the following article where you can find an equivalent of the properties that have changed - Migrating from RadComboBox Classic to ASP.NET AJAX version

    All the best,
    Kate
    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.
  3. Marcelo
    Marcelo avatar
    6 posts
    Member since:
    Feb 2013

    Posted 19 Feb 2013 Link to this post

    Hi Kate,
    First of all thank you for your quick response.
    I would like to clarify that i migrated the solution to framework 4.0 but i'm still using the telerik 2008 version.

    I just created a small sample solution, added the 2008 telerik DLL and when i try to use the radcombobox with radajaxmanager i get the same error message. The issue occurs when i select a value in radcombobox1

    Here is the code:

    ASPX:

    <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
     
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                   </telerik:RadScriptManager>
            <telerik:RadComboBox ID="RadComboBox1" AutoPostBack="true" runat="server">
            </telerik:RadComboBox>
            <telerik:RadComboBox ID="RadComboBox2" runat="server">
            </telerik:RadComboBox>
            <telerik:RadAjaxManager  ID="RadAjaxManagerAxisSelect" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadComboBox1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadComboBox2"  LoadingPanelID="RadAjaxLoadingPanelAxisSelect" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager >
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelAxisSelect" runat="server" Height="75px"
            Width="75px" Transparency="50">
            <img id="IMG1" alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" />
        </telerik:RadAjaxLoadingPanel>
     
    </asp:Content>


    Code Behind:
    Imports Data
    Imports Telerik.Web.UI
     
    Public Class _Default
        Inherits System.Web.UI.Page
     
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim ents As IEnumerable(Of Entity) = New Data.Class1().GetData()
            RadComboBox1.DataSource = ents
            RadComboBox1.DataTextField = "Name"
            RadComboBox1.DataValueField = "ID"
            RadComboBox1.DataBind()
        End Sub
     
        Private Sub RadComboBox1_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles RadComboBox1.SelectedIndexChanged
            Dim ents As IEnumerable(Of Entity) = New Data.Class1().GetData()
            RadComboBox2.DataSource = ents
            RadComboBox2.DataTextField = "Name"
            RadComboBox2.DataValueField = "ID"
            RadComboBox2.DataBind()
        End Sub
    End Class
  4. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 05 Mar 2013 Link to this post

    Hello Marcelo,

    With the 2008 version of the Telerik controls we do not provide dll files that are compatible with the 4.0 .NET Framework and it is likely that you get an exception. Unfortunately we no longer provide support for the 2008 version of the controls that you are using as explained in our Support LifeCycle Policy here. Therefore my best suggestion would be to upgrade to the latest version where you can find dll files that are compatible with the 4.0 .NET Framework.

    Kind regards,
    Kate
    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