This is a migrated thread and some comments may be shown as answers.

RadTreeList HeaderContextMenu

3 Answers 133 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 07 Apr 2011, 03:20 PM
Hi,

I have couple of questions regarding RadTreeList. I would like to have my RadTreeList with the most of the RadGrid´s functionality.

So I am curious if there´s an option to have Header Context Menu in RadTreeList.
Next, if there´s possibility to enableRowHoverStyle and AllowColumnsReorder in RadTreeList.
Finally, is there a way how to have RadToolBar as a CommandItemTemplate like in RadTreeList.


3 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 08 Apr 2011, 12:50 PM
Hello Peter,

The RadGrid features you have listed are not available in RadTreeList yet. Note that RadTreeList is a constantly evolving component and you can expect many features present in RadGrid to be added to it as well. You can integrate RadContextMenu in RadTreeList and have it show on right-clicking the treelist header. This can be implemented using the RadContextMenu client-side API. Row hover style can also be implemented using the onmouseover and onmouseout events attached to treelist row elements. Column reordering is not available yet. Finally, though no command item and command item template is provided in RadTreeList, you can easily style an external panel above RadTreeList to hold custom treelist-related controls controls and options.

Veli
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Peter
Top achievements
Rank 1
answered on 08 Apr 2011, 01:03 PM
Thanks for your reply,
I hope that in the future releases you will consider putting this functionality to RadTreeList.

I´ve already created toolbar with add button which should insert new item to the TreeList. My EditFormType is WebUserControl. How can I call FireCommandEvent from code for InitInsert Command? I want to fire this command after click on add button in toolbar.

According to documentation:
http://www.telerik.com/help/aspnet-ajax/treelist-fire-command-events-from-code.html

there is no InitInsert command in RadTreeList commands.
0
Veli
Telerik team
answered on 08 Apr 2011, 01:56 PM
The InitInsert command does exist, actually. The help topic just does not seem to be updated with new command events recently added to RadTreeList. Most RadGrid events are available in RadTreeList in the same form and API.

As for inserting a new item in RadTreeList from RadToolBar items, you can use RadTreeList.InsertItem() for inserting a root item, or TreeListDataItem.InsertChildItem() for inserting a child item from the specified data item. You call any of these methods from an outside event handler on clicking the toolbar item.

Veli
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeList
Asked by
Peter
Top achievements
Rank 1
Answers by
Veli
Telerik team
Peter
Top achievements
Rank 1
Share this question
or