RadFileExplorer.Grid RowDrop event

2 posts, 0 answers
  1. Heiko Falk
    Heiko Falk avatar
    11 posts
    Member since:
    Sep 2009

    Posted 24 Jun 2009 Link to this post

    Hello,

    I'd like to drag an item from the RadFileExplorer.Grid into other RadGrid. The Grid_RowDrop event of RadFileExplorer should be fired and update the target RadGrid.
    I have added a server-side event to the RadFileExplorer.Grid and also client side events:
              
     
                RadFileExplorer1.Grid.RowDrop += new GridDragDropEventHandler(Grid_RowDrop); 
     
                RadFileExplorer1.Grid.ClientSettings.ClientEvents.OnRowDragStarted = "onRowDragStarted"
                RadFileExplorer1.Grid.ClientSettings.ClientEvents.OnRowDropping = "onRowDropping"
                RadFileExplorer1.Grid.ClientSettings.ClientEvents.OnRowDropped = "onRowDropped"

    But it had no effect. I've tried the  same with RadGrid control and it worked:
    RadGrid1.RowDrop += new GridDragDropEventHandler(Grid_RowDrop);

    So far I have no idea.

    Kind regards,
    Stefan
  2. Lini
    Admin
    Lini avatar
    2150 posts

    Posted 25 Jun 2009 Link to this post

    Hello Stefan,

    The FileExplorer control is also handling the grid row dropping event (on the client) and checks if the target element is a tree node (drag&drop from the grid to the tree). If the element is not a tree node, the event is canceled. This means that when you try to drop a file explorer grid row in another grid, the event will always be canceled.

    The only workaround I can think of now is to handle the grid row dropping client event yourself and check if the grid row was dropped in the other grid. If it was, do a manual postback or ajax request to execute your server code and update the controls.

    Kind regards,
    Lini
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top