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

Drag and Drop

6 Answers 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shakti SIngh Dulawat
Top achievements
Rank 1
Shakti SIngh Dulawat asked on 13 Apr 2011, 07:59 PM

Hello friend I want to implement some drag and drop feature using telerik Silverlight controls, I have two grid on page with data from different data source.
I want to drag one grid data to another grid any suggestion?

 

Thanks
Shakti

6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 14 Apr 2011, 06:45 AM
Hi,

 Have you seen our D&D demos

Best wishes,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Shakti SIngh Dulawat
Top achievements
Rank 1
answered on 14 Apr 2011, 09:26 AM
Thanks for the help I will review and Update you.

Thanks,
Shakti
0
Shakti SIngh Dulawat
Top achievements
Rank 1
answered on 14 Apr 2011, 10:04 PM
I did same code but I was not able to debug or test drag and drop
Even I can not see any example any where , where we can drag and drop in another grid can you please help!
0
Shakti SIngh Dulawat
Top achievements
Rank 1
answered on 15 Apr 2011, 07:39 PM
Please update me can not we drag and drop from one grid to another grid , I was not able to find out any article here at telerik pelase update me asap its too long

Thanks
SHakti
0
Shakti SIngh Dulawat
Top achievements
Rank 1
answered on 15 Apr 2011, 11:20 PM
Hi I am done
have one issue if you can help I am using
<riaControls:DomainDataSource AutoLoad="True" Height="0" LoadingData="billTypeDomainDataSource_LoadingData" LoadedData="billTypeDomainDataSource_LoadedData" x:Name="billTypeDomainDataSource" QueryName="GetBillTypesQuery" Width="0" Grid.Column="1" Margin="42,176,387,140">
            <riaControls:DomainDataSource.DomainContext>
                <my1:BillTypeContext />
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>

I am getting error here
 // OnDropInfo event handler
        private void OnDropInfo(object sender, DragDropEventArgs e)
        {
            RadGridView destination = sender as RadGridView;
             BillType draggedItem = e.Options.Payload as BillType;
            if (e.Options.Status == DragStatus.DropComplete)
            {
              //  destination.Items.Add(draggedItem);
              //  (destination.ItemsSource as IList<BillType>).Add(e.Options.Payload as BillType);
            }

I am getting error here destination.Items.Add(draggedItem);
"Operation is not valid while ItemsSource is in use. Access and modify elements with ItemsControl.ItemsSource instead.
I have both grid with different data source Please help on this matter"

Thanks
Shakti
0
Shakti SIngh Dulawat
Top achievements
Rank 1
answered on 18 Apr 2011, 09:52 PM
I wonder you are not getting my question
what I am asking to you that , how to insert a new row in rad grid (without click on insert button) the grid is bounded with ria domain datasource
Tags
General Discussions
Asked by
Shakti SIngh Dulawat
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Shakti SIngh Dulawat
Top achievements
Rank 1
Share this question
or