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

Problem with Tab Drag&Drop (Q3)

3 Answers 29 Views
Tabstrip (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rohan
Top achievements
Rank 1
Rohan asked on 10 Jan 2008, 01:43 PM
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.

3 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 10 Jan 2008, 02:11 PM
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
0
Rohan
Top achievements
Rank 1
answered on 11 Jan 2008, 06:34 AM
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
0
Boyko Markov
Telerik team
answered on 11 Jan 2008, 08:29 AM
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
    Tags
    Tabstrip (obsolete as of Q2 2010)
    Asked by
    Rohan
    Top achievements
    Rank 1
    Answers by
    Boyko Markov
    Telerik team
    Rohan
    Top achievements
    Rank 1
    Share this question
    or