As you have read the title. I want to add a variable in my title. When I put a property in my model, and also define the model in my div. It still gives me the error:
The name 'property' does not exist in the current. But when I add series for example I can do Model => Model.propname Why is it not possible to do this? sTotalCount is in Model2
The code:
@model model1
<
div
class
=
"demo-section k-content wide"
>
@(Html.Kendo().Chart<
App.Model2
>()
.Name("test" + Model1.ID)
.Title(sTotalcount + "this is the total")