I'm using the automatically generated edit and insert controls for the RadTreeView and so far everything is working out fine, except that I'm stuck on one thing.
I would like to limit the number of nested inserts a user can do by disabling and hiding the insert on certain rows (which will be determined programatically in the ItemDataBound Event).
This is just a simple example of what I'd like to do. Basically if the "level" of the item is 4, I would like to disable and hide the insert.
sender, TreeListItemDataBoundEventArgs e)
(e.Item.ItemType == TreeListItemType.AlternatingItem || e.Item.ItemType == TreeListItemType.Item)
TreeListDataItem item = e.Item
level = (
(level == 4)
The item["InsertCommandColumn"].Enabled kind of works, but it keeps the control visible and confusing for the end user.
If I hide the Cell entirely, all of the other cells shift over to fill the void.
Is there a more graceful way to disable an automatically generated insert button on a row by row basis?