This question is locked. New answers and comments are not allowed.
Hi,
I have 2 radgrids, first one withs items A. Second one with Items B and subitems of the same type as A.
I want to be able to drop items from first grid into the second one.
Right now I can drop items but only into the first row ( i can't find the right row)
I tried enabling drop for each row
And changing
I have 2 radgrids, first one withs items A. Second one with Items B and subitems of the same type as A.
I want to be able to drop items from first grid into the second one.
Right now I can drop items but only into the first row ( i can't find the right row)
private void OnDropInfo(object sender, DragDropEventArgs e)
{
//GridViewRow
RadGridView destination = sender as RadGridView;
if (e.Options.Status == DragStatus.DropComplete)
{
(destination.ItemsSource as IList<
Expedition
>)[0].LstExpedition.Add(e.Options.Payload as LotExpedition);
}
}
private void RadGridView3_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)
{
GridViewRow row = e.Row as GridViewRow;
if (row != null)
{
row.IsExpandable = true;
RadDragAndDropManager.SetAllowDrop(row,true);
}
}
And changing
RadGridView destination = sender as RadGridView; to GridViewRow instead, but by doing that, destination came out as null and it didn't work.
So anyway for me to find out which row I'm dropping my item in?