Breaking Change T1249022
Visible to All Users

Web Dashboard - The approach for storing SVG and HTML templates has changed

What Changed

In v24.2, the approach used to store SVG and HTML templates in the Web Dashboard control changed. The dashboard control no longer appends HTML templates and SVG images to the page markup - in-memory storage is used instead.

The ResourceManager.embedBundledResources() and ResourceManager.removeEmbeddedResources() became obsolete and are not required. The method call causes the following warning in the browser console:

Code
The ResourceManager.embedBundledResources() method is obsolete. Remove the method call from your application. For more information, refer to the following breaking change document ....

Reasons for Change

This change prevents possible re-rendering issues in applications with the Web Dashboard Control.

Impact on Existing Apps

This change affects your application if you used one of the following methods:

  • ResourceManager.embedBundledResources()
  • ResourceManager.removeEmbeddedResources()

How to Update Existing Apps

To update your application, remove the following lines:

Code
ResourceManager.embedBundledResources() ResourceManager.removeEmbeddedResources().

If you use the ResourceManager.registerIcon method, make sure the following requirements are met:

  • The icon consists of a single SVG element.
  • The SVG element has an id attribute. If there is no id attribute in the icon's definition, pass the icon's id as the second parameter to the registerIcon method.

How to Revert to Previous Behavior

You cannot revert to the previous behavior.

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.