DxJSCustomization.OnScriptsLoading Event
Allows you to add custom scripts after the Dashboard component scripts.
Namespace: DevExpress.DashboardBlazor
Assembly: DevExpress.Dashboard.v24.1.Blazor.dll
NuGet Package: DevExpress.Blazor.Dashboard
Declaration
Event Data
The OnScriptsLoading event's data class is ScriptsLoadingEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Scripts |
Provides access to the collection of scripts that the DxDashboard component loads.
|
Remarks
If you use the OnScriptsLoading
event to remove the DevExtreme scripts and reference them manually, you also need to delete the JQuery and Knockout libraries. Ensure that the JQuery and Knockout libraries are loaded before DevExtreme.
You can use the code below to remove the JQuery library the DxDashboard component loads if you already have JQuery on your page:
public void OnDashboardScriptsLoading(ScriptsLoadingEventArgs e) {
e.Scripts.Remove(ScriptIdentifiers.JQuery);
}
More details: JavaScript Customization of Dashboard Component.