Search results

dataSources array

Properties

name

string

Gets or sets the name of the data source.

Default Value

  • empty

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            dataSources: [
                name:"Menu Items",
                value:[{ OrderId: "21D60", FoodName: "Burger", Price: 20, Category: "Veg" },
                { OrderId: "21D61", FoodName: "Pizza", Price: 25, Category: "Non-Veg" },
                { OrderId: "21D63", FoodName: "Sandwiches", Price: 30, Category: "Non-Veg" },
                { OrderId: "21D65", FoodName: "Chicken Drum Sticks", Price: 23, Category: "Non-Veg" },
                { OrderId: "21D64", FoodName: "Fulka", Price: 15, Category: "Veg" }
                ]]
        }
    });
</script>

value

array

Gets or sets the values of data source.

Default Value

  • []

Example

<div id="container"></div>
<script>
    $("#container").ejReportDesigner({
        previewOptions: {
            dataSources: [
                name:"Menu Items",
                value:[{ OrderId: "21D60", FoodName: "Burger", Price: 20, Category: "Veg" },
                { OrderId: "21D61", FoodName: "Pizza", Price: 25, Category: "Non-Veg" },
                { OrderId: "21D63", FoodName: "Sandwiches", Price: 30, Category: "Non-Veg" },
                { OrderId: "21D65", FoodName: "Chicken Drum Sticks", Price: 23, Category: "Non-Veg" },
                { OrderId: "21D64", FoodName: "Fulka", Price: 15, Category: "Veg" }
                ]]
        }
    });
</script>