Two Listbox DragandDrop in RadGroup each other

3 posts, 0 answers
  1. small
    small avatar
    4 posts
    Member since:
    Nov 2010

    Posted 25 Nov 2010 Link to this post

    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. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 26 Nov 2010 Link to this post

    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
  3. DevCraft banner
  4. small
    small avatar
    4 posts
    Member since:
    Nov 2010

    Posted 28 Nov 2010 Link to this post

    Thank you very much.!
Back to Top