TileView static Drag and drop

10 posts, 0 answers
  1. Kasthuri
    Kasthuri avatar
    25 posts
    Member since:
    Aug 2011

    Posted 22 Nov 2011 Link to this post

    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.
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 25 Nov 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Kasthuri
    Kasthuri avatar
    25 posts
    Member since:
    Aug 2011

    Posted 25 Nov 2011 Link to this post

    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.
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 30 Nov 2011 Link to this post

    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 >>

  6. Kasthuri
    Kasthuri avatar
    25 posts
    Member since:
    Aug 2011

    Posted 30 Nov 2011 Link to this post

    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.
  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 05 Dec 2011 Link to this post

    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 >>

  8. Roberto Pantalena
    Roberto Pantalena avatar
    19 posts
    Member since:
    Jul 2009

    Posted 08 Mar 2012 Link to this post

    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..
  9. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 12 Mar 2012 Link to this post

    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 >>
  10. Roberto Pantalena
    Roberto Pantalena avatar
    19 posts
    Member since:
    Jul 2009

    Posted 12 Mar 2012 Link to this post

    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?
  11. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 15 Mar 2012 Link to this post

    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 >>
Back to Top
DevCraft banner