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

Drag child elements on parent drag

1 Answer 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
André
Top achievements
Rank 1
André asked on 20 Apr 2011, 07:59 PM

I'm using RadGrid with drag and drop to a RadScheduler

The system I'm designing is for a TV Show, where each screenplay have several scripts

The user can schedule each script to be shot/recorded at a time, or to get a entire screenplay and schedule it at once.

In my grid, both screenplay and scripts are rows, so user can drag any.

Question 1 - Is it possible to have indented display for this?

Question 2 - Is it possible that when a user drag a row that is a screenplay, all child scripts go with?

Thanks,

Andre

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 26 Apr 2011, 02:48 PM
Hello André,

RadGrid does not support those features out of the box but you can try to provide custom logic in order to achieve similar effect.
1. Indentation can be achieved by setting margins for the grid items by using css classes and styles. If you need to set indentation dynamically per item you can use the ItemCreated event where you can access each item and apply the necessary styling to it. For more information on styling of separate rows please refer to the following help topic.
2. You can manually implement drag and drop for the relevant items as well by handling the RowDropping event as shown in this demo where you can drag and drop more that one item if they are all selected.

All the best,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
André
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or