How to raise an event when reorder a tabitem

4 posts, 0 answers
  1. hvduc
    hvduc avatar
    33 posts
    Member since:
    Jun 2010

    Posted 12 Aug 2010 Link to this post

    I need update tabitems' header when reorder a tabitem.
    but I can't find an event to raise when do that.
    did telerik radtabcontrol support this?
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 18 Aug 2010 Link to this post

    Hi hvduc,

    Unfortunately, the RadTabControl doesn't expose such events for now. However, I added this as a feature request in our PITS where you will be able to track it under the name:"TabControl: Add DragReorder events" from tomorrow the latest.

    I also updated your Telerik points accordingly.

    However, in the meantime you can handle the OnDragQuery(), OnDropQuery() events and when in the OnDropInfo() event the status of the drop operation is DropComplete you can update the RadTabItem's header. Still, you will also need to update the RadTabItem's header when the status of the drag operation in the OnDragInfo() event is DragCancel in order to update the RadTabItem's header whenever it's reordered. I prepared a sample project illustrating this approach. Take a look at the project and let us know if it helps or if you need more info.

    All the best,
    Tina Stancheva
    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. DevCraft banner
  4. hvduc
    hvduc avatar
    33 posts
    Member since:
    Jun 2010

    Posted 18 Aug 2010 Link to this post

    It works for me. Thank you very much
    But I find out there's something wrong with your tabcontrol version 2010.2.714.1040. when I drag 1 tab, it make other tabs' header disappear.
    I updated to version 2010.2.812.1040 (SP1) and this error was fixed
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 19 Aug 2010 Link to this post

    Hi hvduc,

    Yes, there was a known issue with the RadTabItems reordering in the 2010.2.714.1040 version of the controls which was fixed with the SP1 version.

    Kind regards,
    Tina Stancheva
    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