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

Error with RadComboBox after migrating to 4.0

3 Answers 68 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Marcelo
Top achievements
Rank 1
Marcelo asked on 18 Feb 2013, 07:25 PM
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

3 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 19 Feb 2013, 02:37 PM
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.
0
Marcelo
Top achievements
Rank 1
answered on 19 Feb 2013, 05:01 PM
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
0
Kate
Telerik team
answered on 05 Mar 2013, 08:37 AM
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.
Tags
ComboBox
Asked by
Marcelo
Top achievements
Rank 1
Answers by
Kate
Telerik team
Marcelo
Top achievements
Rank 1
Share this question
or