Problem with Tab Drag&Drop (Q3)

4 posts, 0 answers
  1. Rohan
    Rohan avatar
    3 posts
    Member since:
    Feb 2007

    Posted 10 Jan 2008 Link to this post

    Open the WinControls examples application and then choose to view the TAB Drag & Drop example for TabStrip WinControl.

    Perform a drag and drop.

    Expected behaviour is that control that is dragged is placed at location indicated by the drop hint location.

    Instead the dragged control is placed at new location but additionaly the control at the drop location is swapped with original location of dragged tab?!

    This behaviour was working properly in older version of WinControls. We are seeing this error for the first time with Q3 release.
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 10 Jan 2008 Link to this post

    Hi Rohan,

    Thank you for the valuable feedback.

    We are aware of this behavior. It will be addressed in the next release of RadControls for WinForms.

    Please write me back if you have additional questions or suggestions.

    Kind regards,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Rohan
    Rohan avatar
    3 posts
    Member since:
    Feb 2007

    Posted 11 Jan 2008 Link to this post

    Is there any workaround available ? If not, we will need to revert back to using Q2 and I dont want to do that because of the performance improvements in Q3. When is Q3 SP1 scheduled to be released?

    Rohan
  5. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 11 Jan 2008 Link to this post

    Hello Rohan,

    Here is the workaround I've prepared for you:
    1. Subscribe to the TabDragEnded event
    2. Put the following code in the event handler:
    3.  
        void radTabStrip1_TabDragEnded(object sender, TabDragEventArgs args)  
                {  
                    int dragItemIndex = this.radTabStrip1.TabStripElement.BoxLayout.Children.IndexOf(args.DraggedItem);  
                    int replacedItemIndex = this.radTabStrip1.TabStripElement.BoxLayout.Children.IndexOf(args.ReplacedItem);  
                  
                    this.radTabStrip1.TabStripElement.BoxLayout.Children.SwitchItems(replacedItemIndex, dragItemIndex);  
                  
                    this.radTabStrip1.Items.RemoveAt(this.radTabStrip1.Items.IndexOf(args.DraggedItem));  
                    this.radTabStrip1.Items.Insert(dragItemIndex, args.DraggedItem);  
                } 
      This should help you.
      Please write me back if you have more questions.

      Kind regards,
      Boyko Markov
      the Telerik team

      Instantly find answers to your questions at the new Telerik Support Center
    Back to Top