or
element.kendoTreeView({
dataSource: data,
checkboxes: {
name: "checkedData",
template: "<
input
type
=
'checkbox'
name
=
'checkedData'
value
=
'#= item.text #'
/>"
}
});
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=
#3695b3
, endColorstr=
#00536e
, GradientType=
0
);
-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=
#3695b3
, endColorstr=
#00536e
, GradientType=
0
);
<
div
>
@(Html.Kendo().Grid(Model.Items)
.Name("GridReportCommerciale")
.Columns(columns =>
{
columns.Bound(p => p.Workcentre)
.Template(@<
div
onclick
=
"openVincoli('@item.Workcentre')"
class
=
"contentCell"
style
=
"font-weight:bold;font-size:11px"
>@item.Workcentre</
div
>)
.Title("WC").Width(60);
foreach (var sett in Model.SettimaneVisibili)
{
columns.Template(@<
text
>
@if (item[sett.Clone()] != null && item[sett.Clone()].Diametro > 0)
{
if (item[sett].Stato == "R")
{
<
div
onclick
=
"openCampaign('@item[sett.Clone()].RiferimentoCampagna')"
class
=
"contentCell"
style
=
"background-color:#FF8C00;"
>
<
div
>@string.Format("{0:0.00}", item[sett.Clone()].Diametro)</
div
>
<
div
>@string.Format("({0:#,##0})", item[sett.Clone()].Quantita)</
div
>
</
div
>
}
else
{
<
div
onclick
=
"openCampaign('@item[sett.Clone()].RiferimentoCampagna')"
class
=
"contentCell"
style
=
"background-color:#FFFFE0;"
>
<
div
>@string.Format("{0:0.00}", item[sett.Clone()].Diametro)</
div
>
<
div
>@string.Format("({0:#,##0})", item[sett.Clone()].Quantita)</
div
>
</
div
>
}
}
else
{
<
div
class
=
"contentCell"
>
<
div
> </
div
>
<
div
> </
div
>
</
div
>
}
</
text
>)
.HeaderTemplate(
@<
div
>
<
div
>@string.Format("{0:00}-{1:0000}", sett.Clone().NumeroSettimana, sett.Clone().Anno)</
div
>
<
div
>@string.Format("{0}", sett.Clone().GetDayRange())</
div
>
</
div
>)
.Width(70);
}
})
.Scrollable()
.ToolBar(t=>{
t.Template(@<
div
class
=
"k-toolbar k-grid-toolbar k-grid-top"
>
<
a
class
=
"k-button k-button-icontext "
href
=
"/ReportCommerciali?pos=-1"
>
<
span
></
span
>
Indietro
</
a
>
<
a
class
=
"k-button k-button-icontext "
href
=
"/ReportCommerciali?pos=1"
>
<
span
></
span
>
Avanti</
a
>
<
span
>@Model.VisibleRangeDescription</
span
>
</
div
>);
})
//.Resizable(resize => resize.Columns(true))
//.Reorderable(reorder => reorder.Columns(false))
.HtmlAttributes(new { style = "height: 700px;" })
)
</
div
>