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

Two Listbox DragandDrop in RadGroup each other

2 Answers 42 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
small
Top achievements
Rank 1
small asked on 25 Nov 2010, 10:51 AM

Question:
    When I DragandDrop two Listbox in RadGroup each other ,it appear a question. I must DragandDrop the item to Listboxitem nearside,or I can't drop the item to other listbox.


<telerik:RadDocking>
            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup>
        <telerik:RadPane Header="ListBox1" AllowDrop="True">
            <ListBox  x:Name="lstbox" telerik:RadDragAndDropManager.AllowDrop="True"
         ItemContainerStyle="{StaticResource draggableItemStyle}">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <Image Source="{Binding Url}" Width="35" HorizontalAlignment="Center" Height="32" Margin="0 0 10 0" />
                        <TextBlock  TextWrapping="Wrap" Width="50" Text="{Binding Title}"/>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
         

  1.    <ListBox.Template>

                    <ControlTemplate>

  2.                     <ScrollViewer VerticalScrollBarVisibility="Auto" BorderBrush="{x:Null}">
  3.                         <ItemsPresenter />
  4.                     </ScrollViewer>
  5.                 </ControlTemplate>
  6.     </ListBox.Template>

     

            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <telerik:RadWrapPanel  Orientation="Horizontal" Name="rad" />
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
        </ListBox>
        </telerik:RadPane>
        </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>

Explain
   Please download Sample Application from below link:Below is my link of my sample application:
 
http://rapidshare.com/files/433014202/DragAndDrop.7z

    Part of the source, with two pictures

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 26 Nov 2010, 04:33 PM
Hello small,

I am sending your project back with some slight changes made. Once you run the application, you will notice that the background is changed depending on the possibility to drop in this area.
 

All the best,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
small
Top achievements
Rank 1
answered on 29 Nov 2010, 02:34 AM
Thank you very much.!
Tags
DragAndDrop
Asked by
small
Top achievements
Rank 1
Answers by
Maya
Telerik team
small
Top achievements
Rank 1
Share this question
or