RadTreeList HeaderContextMenu

4 posts, 0 answers
  1. Peter
    Peter avatar
    2 posts
    Member since:
    Apr 2011

    Posted 07 Apr 2011 Link to this post

    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.


  2. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 08 Apr 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Peter
    Peter avatar
    2 posts
    Member since:
    Apr 2011

    Posted 08 Apr 2011 Link to this post

    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.
  5. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 08 Apr 2011 Link to this post

    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
Back to Top