This is a migrated thread and some comments may be shown as answers.

RadFileExplorer.Grid RowDrop event

1 Answer 86 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Heiko Falk
Top achievements
Rank 1
Heiko Falk asked on 24 Jun 2009, 08:43 AM
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

1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 25 Jun 2009, 10:20 AM
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.
Tags
FileExplorer
Asked by
Heiko Falk
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or