Drag and Drop

7 posts, 0 answers
  1. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 13 Apr 2011 Link to this post

    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

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 14 Apr 2011 Link to this post

    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
  3. DevCraft banner
  4. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 14 Apr 2011 Link to this post

    Thanks for the help I will review and Update you.

    Thanks,
    Shakti
  5. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 14 Apr 2011 Link to this post

    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!
  6. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 15 Apr 2011 Link to this post

    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
  7. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 15 Apr 2011 Link to this post

    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
  8. Shakti SIngh Dulawat
    Shakti SIngh Dulawat avatar
    89 posts
    Member since:
    Oct 2009

    Posted 18 Apr 2011 Link to this post

    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
Back to Top
DevCraft banner