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

"allowtransfer" to other controls (radgrid)?

5 Answers 104 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 30 Nov 2010, 08:31 PM
Is it possible to transfer items to\from a listbox to\from other types of controls? Or is it exclusive feature for listboxes? I'd really like to transfer items from a radgrid to a listbox.
Thanks.

5 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Dec 2010, 10:38 AM
Hello Brad,

Yes, it is possible. Please see this demo. It shows transfer between RadListBox and RadTreeView, but essentially the approach is the same with any other Telerik control that has draggable items. For RadGridView in particular you can refer to the Grid/ Items Drag-and-drop demo.


Best wishes,
Peter
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Brad
Top achievements
Rank 1
answered on 09 Dec 2010, 11:08 PM
Ok. But I have no need to drag and drop.
I'd just like to double-click and transfer an item from a grid to another grid. Thought this would be a somewhat typical approach to a multi-select control.
0
Genady Sergeev
Telerik team
answered on 15 Dec 2010, 12:59 PM
Hello Brad,

This functionality is not provided out of the box by RadListBox and in general it is hardly possible to transfer items among RadListBox and RadGrid. Some serious custom coding would be required.

Kind regards,
Genady Sergeev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
AM
Top achievements
Rank 1
answered on 31 Jan 2011, 01:32 PM
Hi,

Is it possible to drag and drop items between a listbox and a particular grid cell?
I have a scenario where I want the user to map two sets of columns where the source columns are completely dynamic (different table structures) and the destination set of columns are fixed.
To achieve this, I was thinking of having a listbox contianing a source set of columns and then having a radgrid with 2 columns - 1 for the destination columns and the other column blank so that the user can drag and drop items from the listbox to the blank grid cells to do the mapping.
0
Genady Sergeev
Telerik team
answered on 03 Feb 2011, 10:52 AM
Hi AM,

How would you represent columns in RadListBox? I believe that it is possible to implement that scenario using RadListBox and RadGrid. I suggest that you use the OnClientDragging/Dropping events in order to inspect the element that you are trying to drop onto and then If it is the needed cell, manually insert the item being dragged into RadGrid, using the grid client side API.


Regards,
Genady Sergeev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
ListBox
Asked by
Brad
Top achievements
Rank 1
Answers by
Peter
Telerik team
Brad
Top achievements
Rank 1
Genady Sergeev
Telerik team
AM
Top achievements
Rank 1
Share this question
or