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

How to set the height of row being dragged

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manishkumar
Top achievements
Rank 1
Manishkumar asked on 20 Feb 2009, 06:49 AM
Hi,

I am stuck in a problem wherein if I assign a height to the RadGrid, say 200px, then if I try to drag a row, the div that appears when dragging also takes the height as 200px.

Is there a property using which I can assign height to the drag div separately?

Please confirm.

Thanks in advance,
Manish

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 23 Feb 2009, 03:35 PM
Hi Manishkumar,

You have to define the following css in your mark-up:

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
<style type="text/css">  
 
        #<%= grdPendingOrders.ClientID %>_DraggedRows tr  
        {  
                height:150px;  
        }  
          
</style> 
</telerik:RadCodeBlock> 

where grdPendingOrders is the ID of your RadGrid control.

There is no way to do it in javascript, because the only event that could be used for this purpose (OnRowDragStarted) is fired before the div for the dragged row has been created.

Hope this helps

Regards,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Manishkumar
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or