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

Reorder tabs

9 Answers 116 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Adrian Pay
Top achievements
Rank 1
Adrian Pay asked on 11 Aug 2010, 11:32 AM
hi,

is it possible to reorder tabitems programatically?

thanks!

9 Answers, 1 is accepted

Sort by
0
Adrian Pay
Top achievements
Rank 1
answered on 11 Aug 2010, 12:06 PM
hi,

I've also tried the solution where in i have an underlying itemsource (an observable collection of radtabitem), but each time i do a re-sort, the header of tabs are emptied.

thanks

0
hvduc
Top achievements
Rank 1
answered on 13 Aug 2010, 02:49 AM
I also get this error.
I updated tab header from code-behind and tab's header is emptied when I re-sort tab
0
Viktor Tsvetkov
Telerik team
answered on 13 Aug 2010, 02:45 PM
Hello hvduc,

Attached is a sample project. Could you please examine it and tell me if it works for you?

On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverlight applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

Best wishes,
Viktor Tsvetkov
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 14 Aug 2010, 02:52 AM
I tested your project but it not work for me.
I want to reorder tabitem by drag and drop tabitem, not by click tabitem
I've tried overrides OnItemDragQuery method (or something, I don't remember correctly) but header is still disappeared
0
Miroslav
Telerik team
answered on 17 Aug 2010, 08:43 AM
Hello hvduc,

You can use tabControl.AllowDragReorder = "True" property.

All the best,
Miroslav
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 17 Aug 2010, 10:35 AM
I set AllowDragOrder="True" but tabitem's header is still disappeared
I attached my demo project for you
I use RadControls for Silverlight 4 version 2010.2.714.1040
0
hvduc
Top achievements
Rank 1
answered on 17 Aug 2010, 10:42 AM
Sorry, I can't upload my project. There's something wrong with your upload control. I changed extension from rar to jpg but it failed
<navigation:Page xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
  x:Class="DragReorderTabTest.Home"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                 xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
  mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" 
  Style="{StaticResource PageStyle}">
 
  <Grid x:Name="LayoutRoot">
        <telerikNavigation:RadTabControl x:Name="myTab"  AllowDragReorder="True">
            <telerik:RadTabItem Header="Tab1"/>
            <telerik:RadTabItem Header="Tab2"/>
            <telerik:RadTabItem Header="Tab3"/>
            <telerik:RadTabItem Header="Tab4"/>
            <telerik:RadTabItem Header="Tab5"/>
            <telerik:RadTabItem Header="Tab6"/>
            <telerik:RadTabItem Header="Tab7"/>
            <telerik:RadTabItem Header="Tab8"/>
        </telerikNavigation:RadTabControl>
    </Grid>
 
</navigation:Page>

When I drag 1 tabitem to reorder, its header is disapeared
0
Accepted
hvduc
Top achievements
Rank 1
answered on 19 Aug 2010, 03:25 AM
I updated control to version 2010.2.812.1040 and tabitem's header isn't disappeared when I drag 1 tab. so it is an error in version 2010.2.714.1040. Everything's ok now
0
Tina Stancheva
Telerik team
answered on 20 Aug 2010, 09:16 AM
Hi hvduc,

Yes there was a known issue with the reordering of the RadTabItems in the previous versions. However, the issue is now fixed.

However, should you need more info or assistance, please let us know.

Best wishes,
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
Adrian Pay
Top achievements
Rank 1
Answers by
Adrian Pay
Top achievements
Rank 1
hvduc
Top achievements
Rank 1
Viktor Tsvetkov
Telerik team
Miroslav
Telerik team
Tina Stancheva
Telerik team
Share this question
or