I have a problem when I tried to add a control on the TreeListCommandButton
the context is not resolved
Telerik version: 2.17.0
@{
var modelHierarchyInfo = (ModelHierarchyInfo)context;
if (modelHierarchyInfo.DepthLevel < 2)
{
<TreeListCommandButton Command="Add" Icon="add"></TreeListCommandButton>
}
}
<TreeListCommandButton Command="Edit" Icon="edit"></TreeListCommandButton>
<TreeListCommandButton Command="Delete" Icon="delete"></TreeListCommandButton>
<TreeListCommandButton Command="Save" Icon="save" ShowInEdit="true"></TreeListCommandButton>
<TreeListCommandButton Command="Cancel" Icon="cancel" ShowInEdit="true"></TreeListCommandButton>
</TreeListCommandColumn>