Class Dashboard
An immutable representation of a Dashboard. Could be instantiated by Stream of a .rdash file or by providing JSON string representation of the model.
Inheritance
Namespace: Reveal.Sdk
Assembly: Infragistics.Reveal.SDK.Server.dll
Syntax
public class Dashboard : Object
Constructors
Dashboard(Byte[])
Creates a dashboard from byte array.
Declaration
public Dashboard(byte[] array)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | array | Array representing rdash definition of a dashboard. |
Dashboard(Stream)
Creates a Dashboard object out of Stream of an .rdash file.
Declaration
public Dashboard(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | stream | A stream of an .rdash file |
Dashboard(String)
Creates a dashboard from file system path.
Declaration
public Dashboard(string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filePath | File system path of the .rdash files. |
Methods
FromJsonString(String)
Creates a dashboard object out of json formatted string.
Declaration
public static Dashboard FromJsonString(string jsonString)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | jsonString | Json formatted string. |
Returns
| Type | Description |
|---|---|
| Dashboard | A Dashboard or null in case of failure. |
GetInfo(String)
Gets the DashboardInfo which should be used to render the RevealDashboardThumbnailView. In the client, set RevealDashboardThumbnailView.dashboardInfo to the .Info property of the returned object.
Declaration
public DashboardInfo GetInfo(string dashboardId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | dashboardId |
Returns
| Type | Description |
|---|---|
| DashboardInfo |
GetModel()
For internal use only.
Declaration
public DashboardModel GetModel()
Returns
| Type | Description |
|---|---|
| Infragistics.ReportPlus.DashboardModel.DashboardModel |
SaveToFileAsync(String)
Saves the dashboard to a file.
Declaration
public Task SaveToFileAsync(string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filePath | The path the file where the dashboard(rdash) should be saved. If the file exists it will be overridden. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
ToByteArray()
Asynchronously serializes the dashboard object to .rdash byte array.
Declaration
public byte[] ToByteArray()
Returns
| Type | Description |
|---|---|
| System.Byte[] | Rdash file as byte array. |
ToJsonString()
serializes the dashboard object to json formatter string.
Declaration
public string ToJsonString()
Returns
| Type | Description |
|---|---|
| System.String | Json formatted representation of the dashboard. |
ToStream()
Serializes the dashboard object to .rdash stream.
Declaration
public Stream ToStream()
Returns
| Type | Description |
|---|---|
| System.IO.Stream | Stream of an .rdash representation of the dashboard. |