How to append custom image or advertisement in the widget container of Dashboard Viewer?
Follow the steps to append custom image or advertisement in the widget container, when no data to be displayed in the widget.
Create a dashboard and save the dashboard file (*.SYDX) using the Dashboard Designer.
Refer the below link to know about how to design the dashboard by using dashboard designer application,
Embed the dashboard through the Dashboard Viewer control which is shipped with the Dashboard Platform SDK. Refer the below link to know about how to embed the dashboard viewer control within your application by using Dashboard SDK Platform,
You can embed dashboard within your application which may be ASP.NET, ASP.NET Core, ASP.NET MVC, Angular 1, Angular 2, Typescript, Aurelia, LightSwitch HTML, PHP, JSP, UWP, Windows Forms, Xamarin, and WPF using Dashboard Viewer as HTML5 control.
Add the below styles (CSS) in your webpage and file,
height: 100% !important;
background: url(https://cdn.syncfusion.com/content/images/company-logos/Syncfusion_Logo_Image.png) no-repeat; // Image or advertisement path location if you want
background-position: 50% 50%;
display: none !important;
Where, these styles will overwrite with our existing style(s) for the ‘No data information’ in the Dashboard Viewer, and the image and advertisement will be shown as below.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
|8128||11/18/2017||11/18/2017||Dashboard Platform||Dashboard SDK|