Multi Row Drag and Drop from RadGrid to RadTreeView

Thread is closed for posting
7 posts, 1 answers
  1. Telerik Admin
    Telerik Admin avatar
    1679 posts
    Member since:
    Oct 2004

    Posted 05 Jun 2008 Link to this post

    Requirements

    RadControls version

    Telerik.Web.UI v2008.1 515 (Q1 SP1)
    .NET version

    2.0
    Visual Studio version

    2005
    programming language

    JavaScript, C#/VB
    browser support

    all browsers supported by RadControls


     
    PROJECT DESCRIPTION
    Perform Multi Row Drag and Drop from RadGrid to RadTreeView using the built-in Drag and Drop functionality of the RadGrid.

    Examples on both C# and VB are included in the attached project.
  2. Ahmet Hoso
    Ahmet Hoso avatar
    14 posts
    Member since:
    Jul 2008

    Posted 08 Aug 2008 Link to this post

    It's look like a good sample. Thanks for that. But i need more ..

    There is a splitter in my page. Inside the splitter, a panelbar exist. And my tree is inside the panelbar's panel item. You can imagine the outlook style.

    And the grid is at the right side of the splitter. Is it possible to from rightpane grid to leftpane tree.

    Regards

    Ahmet HOSO
  3. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 11 Aug 2008 Link to this post

    Hi Ahmet,

    Basically, the same approach is applicable when a splitter is involved.
    I have attached a modification of the sample, to handle this functionality.
    I hope this helps.
    If any other questions arise, you can open a formal support ticket, and let us know.

    Greetings,
    Yavor
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  4. Ahmet Hoso
    Ahmet Hoso avatar
    14 posts
    Member since:
    Jul 2008

    Posted 14 Aug 2008 Link to this post

    Hi Yavor

    Thanks alot for this modification. I want to ask a different question.

    When we try to move a grid row, is it possible to show only one or more columns that i only want to show to user.

    Imagine yahoo mail. When you select the mail for moving a folder, you only see the subject of the mail not all details that you see at the grid.

    Regards

    Ahmet HOSO
  5. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 15 Aug 2008 Link to this post

    Hi Ahmet,

    Unfortunately, the present api does not cater for this functionality.

    All the best,
    Yavor
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Answer
    Jure
    Jure avatar
    13 posts
    Member since:
    Aug 2008

    Posted 15 Sep 2008 Link to this post

    Hi!

    What about dragging from RadGrid to RadTreeView between the nodes? Like when you enable EnableDragAndDropBetweenNodes="True" in the Tree there's a dotted line showing the drop position.

    p.s.: Where do I get the list of functions like args.get_node(), args.set_cancel()...?

  7. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 15 Sep 2008 Link to this post

    Hello Jure,

    This behavior is supported only for drag and drop operations between RadGrid instances - you can test that in the following online demo of the product:

    http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/Programming/DragAndDrop/DefaultCS.aspx

    Concerning the arguments passed in the client event handlers:
    To familiarize with them I suggest you examine the 'Client-side API reference'/''Client-side programming' chapters from the RadGrid/RadTreeView documentation (respectively).

    Best regards,
    Stephen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top