menu

ASP.NET Web Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataSourceSettings

    Show / Hide Table of Contents

    Class DataSourceSettings

    Configures data source for Diagram to create the connection by using ID and parent name as per given data.

    Inheritance
    System.Object
    EJTagHelper
    DataSourceSettings
    Inherited Members
    EJTagHelper.GetControlDetails()
    EJTagHelper.GetControlDetails(String)
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.JavaScript.DataVisualization.Models.Diagram
    Assembly: Syncfusion.EJ.dll
    Syntax
    public class DataSourceSettings : EJTagHelper

    Constructors

    DataSourceSettings()

    Declaration
    public DataSourceSettings()

    Properties

    ConnectionDataSource

    Declaration
    [JsonProperty("connectionDataSource")]
    [HtmlAttributeName("connection-DataSource")]
    public ConnectionDataSourceSettings ConnectionDataSource { get; set; }
    Property Value
    Type Description
    ConnectionDataSourceSettings

    Connectors

    Gets or sets collection of connector object

    Declaration
    [JsonProperty("connectors")]
    public object Connectors { get; set; }
    Property Value
    Type Description
    System.Object

    null

    Examples
           
               DiagramProperties Model = new DiagramProperties();
               Collection Connectors = new Collection();
               Connectors.Add(new Connector() { Name = "Connector1" });
               Connectors.Add(new Connector() { Name = "Connector2" });
               Model.DataSourceSettings.Connectors = Connectors;

    CrudAction

    Declaration
    [JsonProperty("crudAction")]
    public CRUDAction CrudAction { get; set; }
    Property Value
    Type Description
    CRUDAction

    CustomFields

    Declaration
    [JsonProperty("customFields")]
    public List<string> CustomFields { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.String>

    DataSource

    Gets or sets the data source either as a collection of objects or as an instance of ej.DataManager

    Declaration
    [JsonConverter(typeof(DataManagerConverter))]
    [JsonProperty("dataSource")]
    [HtmlAttributeName("dataSource")]
    public object DataSource { get; set; }
    Property Value
    Type Description
    System.Object

    null

    Examples
               DiagramProperties Model = new DiagramProperties();
               Model.DataSourceSettings.DataSource = getDatasource();
               ViewData["diagramModel"] = Model;

    Id

    Gets or sets the unique id of the data source items

    Declaration
    [JsonProperty("id")]
    public string Id { get; set; }
    Property Value
    Type Description
    System.String

    null

    Examples
               DiagramProperties Model = new DiagramProperties();
               Model.DataSourceSettings.DataSource = getDatasource();
               Model.DataSourceSettings.Id = "ID";

    Label

    Gets or sets the text to be visible

    Declaration
    public string Label { get; set; }
    Property Value
    Type Description
    System.String

    String.Empty

    Examples
               DiagramProperties Model = new DiagramProperties();
               Model.DataSourceSettings.DataSource = getDatasource();
               Model.DataSourceSettings.Label = "label text";

    Nodes

    Gets or sets collection of nodes object

    Declaration
    [JsonProperty("nodes")]
    public object Nodes { get; set; }
    Property Value
    Type Description
    System.Object

    null

    Examples
               DiagramProperties Model = new DiagramProperties();
               Collection Nodes = new Collection();
               Nodes.Add(new Node() { Name = "node1" });
               Nodes.Add(new Node() { Name = "node2" });
               Model.DataSourceSettings.Nodes = Nodes;

    Parent

    Gets or sets the parent id of the data source item

    Declaration
    [JsonProperty("parent")]
    public string Parent { get; set; }
    Property Value
    Type Description
    System.String

    null

    Examples
               DiagramProperties Model = new DiagramProperties();
               Model.DataSourceSettings.DataSource = getDatasource();
               Model.DataSourceSettings.Id = "ID";
               Model.DataSourceSettings.Parent = "ReportingPerson";

    Query

    Gets or sets the query to filter data source

    Declaration
    [JsonProperty("query")]
    public string Query { get; set; }
    Property Value
    Type Description
    System.String

    Null

    Examples
               DiagramProperties Model = new DiagramProperties();
               Model.DataSourceSettings.DataSource = getDatasource();
               Model.DataSourceSettings.Query = "datasource query";

    Root

    Gets or sets the unique id of the root data source item

    Declaration
    [JsonProperty("root")]
    public string Root { get; set; }
    Property Value
    Type Description
    System.String

    null

    Examples
                DiagramProperties Model = new DiagramProperties();
               Model.DataSourceSettings.DataSource = getDatasource();
               Model.DataSourceSettings.Id = "ID";
               Model.DataSourceSettings.Parent = "ReportingPerson";
               Model.DataSourceSettings.Root = "E1";

    TableName

    Gets or sets the table name on the datasource

    Declaration
    [JsonProperty("tableName")]
    public string TableName { get; set; }
    Property Value
    Type Description
    System.String

    Null

    Examples
               DiagramProperties Model = new DiagramProperties();
               Model.DataSourceSettings.DataSource = getDatasource();
               Model.DataSourceSettings.TableName = "datasource table name";
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved