You can use the following approach:
sender, TreeListCommandEventArgs e)
(e.CommandName == RadTreeList.ExpandCollapseCommandName)
TreeListDataItem dataItem = e.Item
// execute custom logic
I hope this will prove helpful. Please give it a try and let me know about the result.
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed