Multi Row Drag and Drop from RadGrid to RadTreeView

Thread is closed for posting
7 posts, 1 answers
  1. 63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 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. 7DEC60F4-A4BC-4119-8423-318E3ED175B0
    7DEC60F4-A4BC-4119-8423-318E3ED175B0 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. 23C72464-8FC9-43C3-9A12-B431B37B7758
    23C72464-8FC9-43C3-9A12-B431B37B7758 avatar
    11 posts
    Member since:
    Dec 2013

    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. 7DEC60F4-A4BC-4119-8423-318E3ED175B0
    7DEC60F4-A4BC-4119-8423-318E3ED175B0 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. 23C72464-8FC9-43C3-9A12-B431B37B7758
    23C72464-8FC9-43C3-9A12-B431B37B7758 avatar
    11 posts
    Member since:
    Dec 2013

    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
    79F6E1FB-DCA3-4FB2-8C46-CB430C21ECF1
    79F6E1FB-DCA3-4FB2-8C46-CB430C21ECF1 avatar
    15 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. C7498A83-7E2E-418C-8791-93EF573A7569
    C7498A83-7E2E-418C-8791-93EF573A7569 avatar
    9934 posts
    Member since:
    Nov 2016

    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

This Code Library is part of the product documentation and subject to the respective product license agreement.