Ticket T335561
Visible to All Users

"ClientParams is not defined" and other JavaScript errors may occur due to outdated custom web form templates after migrating to v15.2

created 9 years ago

[DevExpress Support Team: CLONED FROM T327472: "baseCollection is undefined" JavaScript error occurs after a hotfix for 15.2.4 is installed]
Hi,
I have upgrade my projects using the Project Converter, but the issue is not solved.
I have attached the required screenshot (the web browser's Console).
I hope you can help me with this issues.
Thanks,
Rossano

Comments (1)
DevExpress Support Team 9 years ago

    Hello Rossano,
    Have you modified the web.config file as was suggested in the Setting the SettingsFilterControl.AllowHierarchicalColumns property to true reduces ASPxGridView performance when the latter is bound to a complex datasource thread?

    I have also found that the most recent version of the Project Converter does not change your configuration file's embedRequiredClientLibraries attribute as required. I have created a separate ticket to research this issue: The Project Converter does not set the embedRequiredClientLibraries attribute to true if it already exists. To solve the issue without the Project Converter, set the embedRequiredClientLibraries attribute to true manually:
    <settings rightToLeft="false" doctypeMode="Html5" embedRequiredClientLibraries="true" ieCompatibilityVersion="edge"

    Please send me a small sample project where this issue is reproducible if it is reproducible with this configuration.
    I'm looking forward to your feedback.

    Answers approved by DevExpress Support

    created 9 years ago (modified 9 years ago)

    Thank you for the sample project, Rossano.
    You need to add the following code to the CustomVerticalTemplateContent.ascxfile :

    ASPx
    <dx:ASPxHiddenField ID="ClientParams" runat="server" ClientInstanceName="ClientParams"> </dx:ASPxHiddenField>

    Refer to the eXpressApp Framework > Task-Based Help > How to: Customize an ASP.NET Template documentation to learn more on customizing default form templates on the Web.
    In the new template there is a ClientParams field. It is often used in client-server interaction.
    Please note, you can remove bin and obj folder from the solution to reduce its size.
    Let me know if you need further assistance.

      Comments (2)

        Hi Alexey,

        I am facing with javascript errors after upgrading my project from 15.1.7 to 15.2.5. I was registering script files in default.aspx page between <script> tags. like fancybox or newsticker etc.
        in first load everything is ok . but after ajax call browser logs error messages like $.fancybox is not a function.

        HTML
        <script type="text/javascript" src="Asset/js/jquery-1.11.3.min.js"></script> <script type="text/javascript" src="Asset/js/jquery-ui.min.js"></script> <script type="text/javascript" src="Asset/js/jquery.newsTicker.js"></script> <script type="text/javascript" src="Asset/js/jquery.fancybox.pack.js"></script> <link rel="Stylesheet" type="text/css" href="Asset/css/Animate.css" /> ...

        above is part of my default.aspx fıle. it was working with 15.1.7. but with 15.2.5 script files are causing errors. And I don't know how to fix.

        Dennis Garavsky (DevExpress) 9 years ago

          @Çağlar: To process your recent post more efficiently, I created a separate ticket on your behalf: T351508: JavaScript errors related to third-party script files registered in the Default.aspx page. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.