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

Drag from Listbox to Radgrid

3 Answers 112 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 2
Stefan asked on 22 Aug 2013, 02:19 PM
Anyone have an example to drag from Listbox to Radgrid?  I can not even get any of the Rowdrop, transferring, dropping etc... to fire?

 

 

<telerik:RadListBox ID="lstPlansMissing" runat="server" AllowAutomaticUpdates="True" AutoPostBack="True" DataTextField="ippComponentDesc" DataValueField="ippComponentID" Font-Size="Small" Height="380px" Skin="Metro" Style="top: 0px; left: 0px; width: 252px; height: 400px;" Width="100%" AllowTransfer="True" AllowTransferOnDoubleClick="True" AutoPostBackOnTransfer="True" EnableDragAndDrop="True">

 

 

 

</telerik:RadListBox>

 



Do I have to enable something on the grid side?  I just want to be able to drag from Listbox to Radgrid.  Don't even need to go the other way just one.  The visual is there when I drag and drop but I can't seem to find a place to catch the code to see which item was selected and dropped.  Do I do that in the grid dropped sub?

Thanks doing this in VB.

3 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 27 Aug 2013, 11:21 AM
Hello Stefan,

Please refer to this online demo, where a similar functionality is implemented. Please check it out and let us know if you find any difficulties implementing it at your end.

Regards,
Nencho
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Stefan
Top achievements
Rank 2
answered on 27 Aug 2013, 01:56 PM
Yes I tried playing around with that but it's grid to grid. I am trying radlist to grid and I can not get any of the events to fire on either control. The item will display over the mouse like it's dragging but non of the grid drop events fire to catch the item? Is this were it would catch it on the grid side? Can I get a small working sample please. I'm using advanced data binding using VB. I don't need code to remove or drag back. Just a way to give me the item that was moved from the list to grid I can handle the rest. I really need this functionality so any help is appreciated!
0
Nencho
Telerik team
answered on 30 Aug 2013, 12:34 PM
Hello Stefan,

I had prepared a sample project for you, demonstrating how to implement the desired functionality. The main purpose of the sample is to demonstrate how to set the target of the dropped item. You could observe how this is achieved at client-side in the sample. In addition, you should handle the Dropped event of the RadListBox and insert the data in your database, which the RadGrid is bound to and rebind the Grid. Please find the sample attached.

Regards,
Nencho
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
ListBox
Asked by
Stefan
Top achievements
Rank 2
Answers by
Nencho
Telerik team
Stefan
Top achievements
Rank 2
Share this question
or