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

[Solved] Drag and Drop from Grid

13 Answers 317 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Voss Grose
Top achievements
Rank 1
Voss Grose asked on 01 May 2009, 02:58 PM

Is it possible to select a grid row and enabled drag/drop so I can drag the row data onto another user control?

I do not have to actually drag the "row" visually, but need to start drag/drop process once the user starts a drag on a Grid Row Item and keep the Row data to use on the drop event.

thanks.


13 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 04 May 2009, 02:04 PM
Hi Voss Grose,

Yes, you can achieve this. I will create such an example and post it in the next few days. I will also reply here.

All the best,
Miroslav
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.
0
Piet
Top achievements
Rank 1
answered on 08 May 2009, 08:06 AM
Hello,
I also need  Drag and Drop to / from RadGridView rows 

i was wandering what the status of the example is?

any luck it could already be shared with us?

Regards Piet 
0
Miroslav
Telerik team
answered on 08 May 2009, 08:58 AM
Hi Piet,

I posted a work-in-progress version of the example here:

http://www.telerik.com/community/forums/silverlight/drag-and-drop/changing-dragcue-mid-drag.aspx

There is some dragging added, I was just in the process of creating the drag/drop from/to GridView rows.

Hopefully you will like the example.

All the best,
Miroslav
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.
0
Voss Grose
Top achievements
Rank 1
answered on 08 May 2009, 01:59 PM
Miroslav,

Are you still working on a more complete example?

If so I'll just wait until your finished to check it out, but I didn't know if this was it for now or not.

thanks for the help.
Voss.
0
Miroslav
Telerik team
answered on 13 May 2009, 07:42 AM
Hi Voss,

I have posted an update to the example here:

http://www.telerik.com/community/forums/silverlight/drag-and-drop/changing-dragcue-mid-drag.aspx

please note that the example is not documented yet. It will be live soon.

You can see dragging to and from the grid. (This way you assign or open a bug).

Please note that this is meant to stay as a work-in progress to show off the Drag&Drop and the controls, so if you want to see something implemented or just share your feedback, feel free to let us know and I will update the sample app.

Regards,
Miroslav
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.
0
Voss Grose
Top achievements
Rank 1
answered on 13 May 2009, 02:41 PM
Miroslav,

Thanks for the example, but it's not really working for me.

Sometimes it just comes up with a blank screen and if I hit refresh several times it seems to load after a while, but the bottom left panel has a continuous loading image and never shows any data.

When I click on the unassigned tab at the bottom the app just goes away to a blank screen.

Any ideas?
0
Miroslav
Telerik team
answered on 14 May 2009, 06:39 AM
Hello Voss,

The example was created with assemblies from Latest internal build (Silverlight 2), version 1.0501, you may encounter problems with older versions. Sorry for not clearing this up earlier.

Could you please check that you have at least this version? I have attached them here for your convenience.

Then if you still get an error, could you turn on all exceptions in VS and see what error comes up.

Thanks,
Miroslav
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.
0
Voss Grose
Top achievements
Rank 1
answered on 14 May 2009, 06:30 PM
Miroslav ,

Is " turn on all exceptions" the same as "enable Just My Code"?.

Is it looking for any files in the GAC or something?

I tried that and didn't get any errors bubbled up, but here is a IE error that I get:

Error: Unhandled Error in Silverlight 2 Application Could not load file or assembly "System.Windows.Controls.Data, Version=2.0.5.0,
Culture=neutral, PublicKeyToken=3d8c6023c75a3242' or one of its dependcies.
The system cannot find teh file specified at Telerk.Windows.Data.RecordManager.ManageSourceEvents.......

0
Miroslav
Telerik team
answered on 15 May 2009, 06:24 AM
Hello Voss,

From the error message it seems that you do not have the correct reference to System.Windows.Controls.Data. The GridView in the example needs this assembly.

Also if you have a reference to this assembly, could you remove it and add a reference to the System.Windows.Controls.Data that is included with the Telerik assemblies. This is because this assembly was actually updated by MS and now there are two versions of it that you can come across. The version that comes with the Telerik assemblies is the latest.

Also you need references to Telerik.Windows.
*Data
*Controls
*Controls.Docking
*Controls.GridView
*Controls.Navigation
*Controls.Input

Does this work for you?

Greetings,
Miroslav
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.
0
Voss Grose
Top achievements
Rank 1
answered on 22 Jun 2009, 06:53 PM
Miroslav,

I got this to work finally and a new clean computer.

Do you happen to know if this same code work should for SilverLight 3.0?

thanks,
0
Valentin.Stoychev
Telerik team
answered on 25 Jun 2009, 07:01 AM
Hi Voss Grose,

Yes - it should work if you are using the SL2 assemblies. If you are doing a new SL3 application with our SL3 dlls - just let us know if you face any problems and we will try to adress then ASAP.

Sincerely yours,
Valentin.Stoychev
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.
0
Voss Grose
Top achievements
Rank 1
answered on 12 Jul 2009, 02:13 PM
Miroslav,

Do you have Drag and Drop sample code or project that is not using the MVC pattern?

I hate to combine MVC with trying to learn how to implement drag and drop.

Thanks,
Voss.
0
Accepted
Miroslav
Telerik team
answered on 14 Jul 2009, 08:44 AM
Hi Voss Grose,

If you are trying to DragDrop to or from a grid, then you will not be able to define it completely in Xaml because it needs an items source. The items source is then just an ordinary class that you bind to.

I created a simple commented example with drag-drop between list box and grid view. Hopefully you will find it helpful,

Greetings,
Miroslav
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
GridView
Asked by
Voss Grose
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Piet
Top achievements
Rank 1
Voss Grose
Top achievements
Rank 1
Valentin.Stoychev
Telerik team
Share this question
or