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

drag and drop control the look of the items being dragged

2 Answers 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris Trina
Top achievements
Rank 1
Chris Trina asked on 16 Aug 2010, 07:37 PM
On a drag and drop, how can I control the layout of the row being dragged?  Below is my master grid, please note that the first column is only 18px wide.  When dragging the first column becomes 1/2 the width of the grid.  How can I force the same layout for the row being dragged?

Thanks

 

 

<telerik:RadGrid runat="server" ID="grdKCGs" AllowPaging="False" Width="100%" AllowMultiRowSelection="false">

 

 

 

<MasterTableView DataKeyNames="TopicKCGID" Width="100%" TableLayout="Fixed" AutoGenerateColumns="false">

 

 

 

<Columns>

 

 

 

<telerik:GridDragDropColumn HeaderStyle-Width="18px"></telerik:GridDragDropColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="TopicKCGID" DataField="TopicKCGID" Visible="false" />

 

 

 

<telerik:GridBoundColumn UniqueName="KCGDescription" DataField="KCGDescription" HeaderText="Description" ReadOnly="true" />

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

<ClientSettings AllowRowsDragDrop="true">

 

 

 

<Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />

 

 

 

</ClientSettings>

 

 

 

</telerik:RadGrid>

 

2 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 19 Aug 2010, 08:51 AM
Hello Chris,

In order to correct the behavior you have described you may set GridDragDropColumn's ItemStyle-Width too.

Best wishes,
Rosen
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
Chris Trina
Top achievements
Rank 1
answered on 23 Aug 2010, 01:29 PM
Perfect!

thanks
Tags
Grid
Asked by
Chris Trina
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Chris Trina
Top achievements
Rank 1
Share this question
or