Ajaxified combobox: unsupported method "toUpperCase"

3 posts, 0 answers
  1. Bernd
    Bernd avatar
    92 posts
    Member since:
    Feb 2013

    Posted 19 Aug 2013 Link to this post

    Hello all.

    I try to ajaxify a combobox with automatic load on demand.

    The definition in the AJAX manager:
    <telerik:AjaxSetting AjaxControlID="MatCompAddComponentButton">
        <telerik:AjaxUpdatedControl ControlID="PanelMatComp" UpdatePanelCssClass="" />

    The PanelMatComp:
    <asp:Panel ID="PanelMatComp" runat="server" Visible="false">
        <telerik:OpenAccessDataSource ID="OpenAccessDataSourceItems" runat="server" ObjectContextProvider="idee5.DispatcherModel.DispatcherEntities, idee5.DispatcherModel" TypeName="idee5.DispatcherModel.Item" Where="this.MasterSystemHierarchy == @MasterSystemHierarchy">
                <asp:QueryStringParameter Name="MasterSystemHierarchy" QueryStringField="Hierarchy" />
        <asp:CheckBox ID="MatCompComplete" runat="server" Enabled="False" Text="Komplettentnahme" />
        <telerik:RadComboBox ID="MatCompItemComboBox" Runat="server" Culture="de-DE" DataSourceID="OpenAccessDataSourceItems" DataTextField="Label" DataValueField="Id" EmptyMessage="Bitte Artikel auswählen" EnableAutomaticLoadOnDemand="True" ItemsPerRequest="10" Label="Artikel" LoadingMessage="Lade..." AutoPostBack="True" ShowMoreResultsBox="True" EnableVirtualScrolling="True" Filter="Contains" Height="180px" Width="250px" CausesValidation="False" EnableItemCaching="True">

    Reaching the point where the panel is shown I get the following error message. Disabling AJAX in the Rad AJAX manager works fine.
    "Das Objekt unterstützt die Eigenschaft oder Methode "toUpperCase" nicht"

    It seems to be the first call of registerEnum. But I have no idea what is wrong. All other controls work fine.
    (function(){var a=$telerik.$;
    var b=Telerik.Web.UI;

    Any help is appreciated
  2. Bernd
    Bernd avatar
    92 posts
    Member since:
    Feb 2013

    Posted 19 Aug 2013 Link to this post

    Here is the AJAX part about the combobox. Sorry for copying the wrong part in the original post.

    telerik:AjaxSetting AjaxControlID="MatCompItemComboBox">
            <telerik:AjaxUpdatedControl ControlID="MatCompItemComboBox" />

  3. Marin
    Marin avatar
    1057 posts

    Posted 22 Aug 2013 Link to this post


     You can check whether all controls participating in the ajax settings are rendered and visible on the page when the ajax request starts. If you are trying to ajaxify a control that is not initially visible this might cause problems later on. Also you can test with a single simple setting in the AjaxManager e.g.:

    <telerik:AjaxSetting AjaxControlID="PanelMatComp">
            <telerik:AjaxUpdatedControl ControlID="PanelMatComp" />

    to rule out any possible problems issues between the various settings.
    Additionally the load on the demand feature of the combo actually performs an asynchronous request itself so no regular postback should be raised by the combobox even without ajax settings.Regards,
    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 the blog feed now.
Back to Top