I believe you are referring to the expand/collapse action of tree list item occuring on the server, as there is no client-side expand/collapse for RadTreeList as of the current version. If this is not what you meant, can you, please, clarify. To prevent expand/collapse commands, you can hide the expand/collapse buttons in each tree list data item. To do that, RadGrid's ItemCreated event can be used as follows:
var expandCell = dataItem.Cells[dataItem.HierarchyIndex.NestedLevel];
if(expandCell.Controls.Count >0)
{
expandCell.Controls[0].Visible = false;
}
}
}
The result looks like this:
Veli
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!