Drag from Listbox to Radgrid

4 posts, 0 answers
  1. Stefan
    Stefan avatar
    58 posts
    Member since:
    Jan 2013

    Posted 22 Aug 2013 Link to this post

    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.
  2. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 27 Aug 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stefan
    Stefan avatar
    58 posts
    Member since:
    Jan 2013

    Posted 27 Aug 2013 Link to this post

    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!
  5. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 30 Aug 2013 Link to this post

    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.
Back to Top