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

[Solved] row size during drag and drop

3 Answers 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 19 Jun 2008, 08:24 PM
I have a grid in the center of my page from which users can drag rows (representing pieces of merchandise) onto several different controls around the page.

The problem I'm having is this:
When a height is specified for the grid, rows expand to that size when you drag them. If not height is specified for the grid then rows maintain their original size during the drag. I need to specify a size for the grid, however, in order to maximize the number of rows that are visible at any given time. Here is the ASPX for my grid (although I've tried sizing it several different ways):


<telerik:RadGrid ID="rgItems" runat="server" GridLines="None" Skin="WebBlue" OnNeedDataSource="rgItems_NeedDataSource" OnRowDrop="rgItems_RowDrop" Width="460px" Height="585px">

<ClientSettings allowrowsdragdrop=True AllowColumnsReorder="True" ReorderColumnsOnClient="True">

<Selecting AllowRowSelect=True />

<ClientEvents OnRowDropping="onRowDropping"/>

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

</ClientSettings>

<MasterTableView DataKeyNames="nbrItemID" TableLayout="Fixed" AutoGenerateColumns="False">

<Columns>

<telerik:GridBoundColumn UniqueName="1" DataField="txtImageHTML" >

<HeaderStyle Width="60px" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn UniqueName="2" DataField="txtDescriptionHTML" HeaderText="&lt;center&gt;New Items&lt;/center&gt;" >

<HeaderStyle Width="220px" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn UniqueName="3" DataField="txtCategoryHTML" />

</Columns>

<RowIndicatorColumn Visible="False">

<HeaderStyle Width="20px" />

</RowIndicatorColumn>

<ExpandCollapseColumn Resizable="False" Visible="False">

<HeaderStyle Width="20px" />

</ExpandCollapseColumn>

<EditFormSettings>

<PopUpSettings ScrollBars="None" />

</EditFormSettings>

</MasterTableView>

</telerik:RadGrid>


Any help is greatly apreciated!

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 20 Jun 2008, 02:18 PM
Hello Mike,

I am glad to inform you that this problem is now fixed.
Please upgrade to RadControls for ASP.NET AJAX - Q1 2008 Service Pack 2, which was released yesterday.


Regards,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Accepted
Princy
Top achievements
Rank 2
answered on 23 Jun 2008, 06:38 AM
Hi Mike,

Go through the following KB article which explains how to upgrade Telerik controls from one version to another.
Updating RadControls for ASP.NET to another version or license

Princy.
0
Mike
Top achievements
Rank 1
answered on 23 Jun 2008, 01:38 PM
Thank you both very much for your help. I was able to upgrade to the new version and have verified that this corrected the issue.
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Princy
Top achievements
Rank 2
Mike
Top achievements
Rank 1
Share this question
or