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

move between grids

2 Answers 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
George Handlin
Top achievements
Rank 1
George Handlin asked on 08 Jun 2013, 11:51 PM
Trying to move rows between two grids all client-side.

This is what I've been trying. I get the correct number of rows in the second grid, but no data.

function onMoveAssets() {

    var radGrid = $find('<%= AssetGrid.ClientID %>');

    var grid2 = $find('<%= SelectedAssets.ClientID %>').get_masterTableView();

    var selectedItems = radGrid.get_masterTableView().get_selectedItems();

    grid2.set_dataSource(selectedItems);

    grid2.dataBind();

}

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Jun 2013, 05:46 AM
Hi,

I guess you want to drag rows from a RadGrid and drop it in another Radgrid. Please check this Demo.

Thanks,
Shinu.
0
George Handlin
Top achievements
Rank 1
answered on 10 Jun 2013, 05:21 PM
No, I'm not looking for drag & drop functionality. User selects a set of items from one grid, clicks the "move" button to remove from the source grid and add to the destination grid. Would like to do it all client-side.
Tags
Grid
Asked by
George Handlin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
George Handlin
Top achievements
Rank 1
Share this question
or