or
.ToolBar(toolbar =>
{
toolbar.Template(
@{
if(centre.AttributeCenterRels.Count < 6) {
@<div class="action text-align-right">
<a href="~/AttributCentreRel/Create?CentreId=@centre.Id" class="btn"><i class="icon-plus"></i> Create</a>
</div>
}
else{
@<div class="action text-align-right">
Vous ne pouvez spécifier que 6 attributs pour un centre.
</div>
}
}
);
})
Is this possible?
Regards,

list.Add(new Editable { Id = -1, MasterId = masterId, Type = TypeCode });Unhandled exception at line 3, column 5099 in http://localhost:60455/Scripts/kendo/jquery.min.js0x800a138f - Microsoft JScript runtime error: 'length' is null or not an object