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

TileView static Drag and drop

9 Answers 103 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Kasthuri
Top achievements
Rank 1
Kasthuri asked on 22 Nov 2011, 07:53 AM
Hi,

   I need your help do a stataic Drag and drop between Two tileView controls.I have attached a clear Image with my requirement.Is that possible.Pls do let me know some solution for It.

9 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 25 Nov 2011, 08:55 AM
Hi Kasthuri,

We prepared a project for you showing how to drag a TileViewItems from one TileView to another. Please note that the project demonstrates the new DragDropManager. You can check out its documentation here.

Regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Kasthuri
Top achievements
Rank 1
answered on 26 Nov 2011, 05:42 AM
Hi,
  Thanks for your help.Its really help me.but i Can only Drag and drop from left to right.And looking for both side thst is right to left and also from left to right.could you please help me out.
0
Petar Mladenov
Telerik team
answered on 30 Nov 2011, 05:08 PM
Hi Kasthuri,

 You can find a modification of the last project I sent you. First, all of the DragDrop Event handlers are now shared between the two RadTileViews:

public MainPage()
    {
        InitializeComponent();
 
        DragDropManager.AddDropHandler(this.firstTileView, OnDrop);
        DragDropManager.AddDropHandler(this.SecondTileView, OnDrop);
 
        DragDropManager.AddDragInitializeHandler(this.SecondTileView, OnDragInitializedRadTileView);
        DragDropManager.AddDragInitializeHandler(this.firstTileView, OnDragInitializedRadTileView);
 
 
 
        DragDropManager.AddDragDropCompletedHandler(this.SecondTileView, OnDragFromListCompleted);
        DragDropManager.AddDragDropCompletedHandler(this.firstTileView, OnDragFromListCompleted);
Then we have to set the AllowDrag property to true on every RadTileViewitem in the First RadTileView:
<telerik:RadTileView x:Name="firstTileView" BorderBrush="Green" BorderThickness="2">
            <telerik:RadTileView.ItemContainerStyle>
                <Style TargetType="telerik:RadTileViewItem">
                    <Setter Property="telerik:DragDropManager.AllowDrag" Value="True" />
                </Style>
            </telerik:RadTileView.ItemContainerStyle>
        </telerik:RadTileView>
Please feel free to ask if you need further assistance or info.  All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Kasthuri
Top achievements
Rank 1
answered on 01 Dec 2011, 05:21 AM
hi,

 Thanks for your reply.Still You create a TileviewiTem in the drag process.Static In way i mean that am going fix the of tileviewitem on the both tileview.That is In tileview A am having 7item.and in Tileview B i have 8 item with diffident restore hegiht and width.pls do help.with fixed items.Not by creating on drag state.
0
Petar Mladenov
Telerik team
answered on 05 Dec 2011, 05:20 PM
Hi Kasthuri,

 Please check out the attached solution where some modifications have been made. Could you please also elaborate more on your exact requirement, for example you can add some Drag and drop scenarios like: item from tile A is dragged and dropped in tile B and it always preserves its restored width and restored height. This way we would be much better able to quickly get into your scenario and advice you. Thank you in advance.

Regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Roberto Pantalena
Top achievements
Rank 1
answered on 08 Mar 2012, 09:35 AM
Hi, i have to implement the drag e drop of tileviewitems between tileviews. I downloaded the previous attached project and i noted that if i drag a tileviewitem without exiting the parent tileview, it disappears..
0
Petar Mladenov
Telerik team
answered on 12 Mar 2012, 12:45 PM
Hello Roberto,

 In this code library project you can find a modification of the last attached project  and I believe the mentioned issue does not exist. Please check it out and let us know if it satisfies you.

All the best,
Petar Mladenov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Roberto Pantalena
Top achievements
Rank 1
answered on 12 Mar 2012, 04:56 PM
I found a bug.. if i drag a tileViewItem outside the tileView, it disappears.. to handle this, i need the destination of the drag&drop operation..but with the Telerik DragAndDropManager, the destination is not included in the properties, only the source and the originalSource are included.
With the RadDragAndDropManager, i can see the destination, but the project doesent' work.. any ideas?
0
Petar Mladenov
Telerik team
answered on 15 Mar 2012, 10:17 AM
Hi Roberto,

 A possible solution for this is shown in the attached project. I know you cannot use it in your scenario as discussed in your support thread but may be helpful to others here.

Greetings,
Petar Mladenov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
TileView
Asked by
Kasthuri
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Kasthuri
Top achievements
Rank 1
Roberto Pantalena
Top achievements
Rank 1
Share this question
or