array
string
Gets or sets the name of the data source.
Defaults to empty
Example
<div id="container"></div>
<script>
$("#container").boldReportDesigner({
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>
array
Gets or sets the values of data source.
Defaults to [ ]
Example
<div id="container"></div>
<script>
$("#container").boldReportDesigner({
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>