Reorder tabs

10 posts, 1 answers
  1. Adrian Pay
    Adrian Pay avatar
    28 posts
    Member since:
    Nov 2009

    Posted 11 Aug 2010 Link to this post

    hi,

    is it possible to reorder tabitems programatically?

    thanks!
  2. Adrian Pay
    Adrian Pay avatar
    28 posts
    Member since:
    Nov 2009

    Posted 11 Aug 2010 Link to this post

    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

  3. DevCraft banner
  4. hvduc
    hvduc avatar
    33 posts
    Member since:
    Jun 2010

    Posted 12 Aug 2010 Link to this post

    I also get this error.
    I updated tab header from code-behind and tab's header is emptied when I re-sort tab
  5. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 13 Aug 2010 Link to this post

    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
  6. hvduc
    hvduc avatar
    33 posts
    Member since:
    Jun 2010

    Posted 13 Aug 2010 Link to this post

    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
  7. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 17 Aug 2010 Link to this post

    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
  8. hvduc
    hvduc avatar
    33 posts
    Member since:
    Jun 2010

    Posted 17 Aug 2010 Link to this post

    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
  9. hvduc
    hvduc avatar
    33 posts
    Member since:
    Jun 2010

    Posted 17 Aug 2010 Link to this post

    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
  10. Answer
    hvduc
    hvduc avatar
    33 posts
    Member since:
    Jun 2010

    Posted 18 Aug 2010 Link to this post

    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
  11. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 20 Aug 2010 Link to this post

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