Hi,
I have a web page that is using several Kendo UI controls (charts, lists) in MVC 5 project. The code example is below.
Now I have to create a Telerik report to display all of them in PDF. I've found that there is no a simple conversion from Kendo js UIs to report.
My question is, what is the better way to have/convert the existing Kendo js UIs into Telerik report?
Thanks.
<script>
function createChartOtmPerf() {
$("#chartOTMPerf").kendoChart({
dataSource: {
data: otmBenchmarkData
},
chartArea: {
margin: {
top: -50,
bottom: 0,
left: 0,
right: 0
},
padding: 0
//background: "beige"
},
seriesDefaults: {
type: "area",
stack: true,
missingValues: "gap"
},
series: [
{
type: "line",
missingValues: "gap",
field: "Vlu",
color: "black",
markers: {
visible: false
},
tooltip: {
visible: true,
template: "#= dataItem.DtTxt # - #= kendo.format('{0:C0}',dataItem.CurrentValue) #"
},
stack: false
},
{
type: "line",
field: "TopLine",
color: "black",
width: 0.1,
markers: {
visible: false
},
},
{
field: "Band5",
color: "red",
tooltip: {
}
},
{
field: "Band6",
color: "yellow",
tooltip: {
}
}, {
field: "Band7",
color: "green",
tooltip: {
}
}, {
field: "Band8",
color: "blue",
tooltip: {
visible: false
}
}
],
valueAxis: {
labels: {
visible: false
},
line: {
visible: true
},
majorGridLines: {
visible: false
},
axisCrossingValue: -8
},
dataBound: onDB,
categoryAxis: {
field: "Yr",
majorGridLines: {
visible: false
},
majorTicks: {
visible: false
},
labels: {
visible: true,
rotation: 315,
step: 12
},
line: {
visible: true
}
}
});
function onDB(e) {
e.sender.options.categoryAxis.labels.skip = labelSkip;
}
}
</script>
I have a web page that is using several Kendo UI controls (charts, lists) in MVC 5 project. The code example is below.
Now I have to create a Telerik report to display all of them in PDF. I've found that there is no a simple conversion from Kendo js UIs to report.
My question is, what is the better way to have/convert the existing Kendo js UIs into Telerik report?
Thanks.
<script>
function createChartOtmPerf() {
$("#chartOTMPerf").kendoChart({
dataSource: {
data: otmBenchmarkData
},
chartArea: {
margin: {
top: -50,
bottom: 0,
left: 0,
right: 0
},
padding: 0
//background: "beige"
},
seriesDefaults: {
type: "area",
stack: true,
missingValues: "gap"
},
series: [
{
type: "line",
missingValues: "gap",
field: "Vlu",
color: "black",
markers: {
visible: false
},
tooltip: {
visible: true,
template: "#= dataItem.DtTxt # - #= kendo.format('{0:C0}',dataItem.CurrentValue) #"
},
stack: false
},
{
type: "line",
field: "TopLine",
color: "black",
width: 0.1,
markers: {
visible: false
},
},
{
field: "Band5",
color: "red",
tooltip: {
}
},
{
field: "Band6",
color: "yellow",
tooltip: {
}
}, {
field: "Band7",
color: "green",
tooltip: {
}
}, {
field: "Band8",
color: "blue",
tooltip: {
visible: false
}
}
],
valueAxis: {
labels: {
visible: false
},
line: {
visible: true
},
majorGridLines: {
visible: false
},
axisCrossingValue: -8
},
dataBound: onDB,
categoryAxis: {
field: "Yr",
majorGridLines: {
visible: false
},
majorTicks: {
visible: false
},
labels: {
visible: true,
rotation: 315,
step: 12
},
line: {
visible: true
}
}
});
function onDB(e) {
e.sender.options.categoryAxis.labels.skip = labelSkip;
}
}
</script>