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

How to raise an event when reorder a tabitem

3 Answers 81 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
hvduc
Top achievements
Rank 1
hvduc asked on 13 Aug 2010, 02:53 AM
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?

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 18 Aug 2010, 01:26 PM
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
0
hvduc
Top achievements
Rank 1
answered on 19 Aug 2010, 03:23 AM
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
0
Tina Stancheva
Telerik team
answered on 19 Aug 2010, 09:11 AM
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
Tags
TabControl
Asked by
hvduc
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
hvduc
Top achievements
Rank 1
Share this question
or