Back to Devexpress

LegacySettings Class

dashboard-js-devexpress-dot-dashboard-c5b86362.md

latest2.2 KB
Original Source

LegacySettings Class

Contains classes and members that allow you to use legacy options.

Declaration

ts
export class LegacySettings

Properties

showExtendedDateOccurringList Property

Declaration

ts
static showExtendedDateOccurringList: boolean

Property Value

Type
boolean

showUndoRedoButtonsInToolbox Property

Declaration

ts
static showUndoRedoButtonsInToolbox: boolean

Property Value

Type
boolean

useLegacyTreeView Property

Specifies whether to use the dxTreeView widget to visualize the Tree View dashboard item.

Declaration

ts
static useLegacyTreeView: boolean

Property Value

TypeDescription
boolean

true , to use the dxTreeList widget; false , to use the dxTreeList widget.

|

Remarks

With v17.2, DashboardControl uses the underlying dxTreeList instead of dxTreeList to visualize a Filter Elements Overview (Web). This change can affect projects where ViewerApiExtensionOptions .onItemWidget… handlers are specified to customize the underlying dxTreeView widget.

The dxTreeView widget was replaced with dxTreeList for these reasons:

  • dxTreeList has better performance when a large number of records is displayed;
  • dxTreeList supports the search capability.

If necessary, you can return to the previous behavior and use the dxTreeView widget using the useLegacyTreeView property. The following code snippet shows how to do this:

javascript
window.onload = function () {    
    DevExpress.Dashboard.LegacySettings.useLegacyTreeView = true;
    // ...   
};