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
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 >>
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.
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);
<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>
Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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.
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 >>
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
With the RadDragAndDropManager, i can see the destination, but the project doesent' work.. any ideas?
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