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

[Solved] Row height changing on row select

8 Answers 158 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 16 Apr 2008, 07:14 PM
Hi,

I have a grid with Office2007 skin (although the same happens regardless of skin).  I have ajax enabled, when I click a row, the post back happens - the colour of the row changes, but the height of the row also changes.  Before I select anything there is a lot of padding, but there seems to be an autofit going on after the callback returns.

<

rad:RadGrid ID="grdStudyCycles" runat="server" AutoGenerateColumns="False" DataSourceID="SqlStudyCycleTimes"

EnableAJAX="True" GridLines="None" Width="408px" OnItemCommand="grdStudyCycles_ItemCommand" Skin="Office2007">

<MasterTableView DataSourceID="SqlStudyCycleTimes" CellPadding="0" GridLines="Both" DataKeyNames="MEASURE" ItemStyle-Height="5" >

<Columns>

<rad:GridBoundColumn DataField="MEASURE" UniqueName="MEASURE" HeaderText="Interval">

<ItemStyle HorizontalAlign="Left" />

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="TARGET" UniqueName="TARGET" DataFormatString="{0:G0}" DataType="System.Decimal" HeaderText="Target">

<ItemStyle HorizontalAlign="Left" />

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="BLYEAR_AVG" UniqueName="BLYEAR_AVG" DataFormatString="{0:G0}" DataType="System.Int32" HeaderText="2007">

<ItemStyle HorizontalAlign="Left" />

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="FORECAST_AVG" UniqueName="FORECAST_AVG" DataFormatString="{0:G0}" DataType="System.Int32" HeaderText="Forecast">

<ItemStyle HorizontalAlign="Left" />

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="WYE_AVG" UniqueName="WYE_AVG" DataFormatString="{0:G0}" DataType="System.Int32" HeaderText="WYE">

<ItemStyle HorizontalAlign="Left" />

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="YTD_AVG" UniqueName="YTD_AVG" DataFormatString="{0:G0}" DataType="System.Int32" HeaderText="YTD">

<ItemStyle HorizontalAlign="Left" />

</rad:GridBoundColumn>

</Columns>

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

<HeaderStyle Width="20px" />

</ExpandCollapseColumn>

<RowIndicatorColumn Visible="True">

<HeaderStyle Width="20px" />

</RowIndicatorColumn>

</MasterTableView>

<ClientSettings EnablePostBackOnRowClick="True" EnableClientKeyValues="False">

</ClientSettings>

</rad:RadGrid>

8 Answers, 1 is accepted

Sort by
0
Stephen
Top achievements
Rank 1
answered on 16 Apr 2008, 09:07 PM
I did this to fix it, but it was a guess,

styles.css

.GridRowOver_Office2007

td,

.SelectedRow_Office2007

td,

.ActiveRow_Office2007

td

{

border-right: solid 1px #f29536;

border-bottom: solid 1px #f29536;

/* added by me */

padding-left:2px;

padding-top:4px;

padding-bottom:4px;

}

0
Dimo
Telerik team
answered on 17 Apr 2008, 06:58 AM
Hi Stephen,

Are you sure you are talking about the Prometheus Grid? It seems to me that you are using the classic RadGrid, but this is the forum about RadGrid Prometheus.

Anyway, I tried using your code with both the classic and Prometheus RadGrid and the rows' height did not change on selecting. Could you please open a support ticket and send us a simple working project? Another option is to paste your Office2007 skin here.

In the meantime, I am attaching the official Office2007 skin for classic RadGrid, please test it with your application.

Greetings,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Stephen
Top achievements
Rank 1
answered on 17 Apr 2008, 08:31 AM
Hi,

Must admit I get confused by the product names.  ASP.NET, ASP.NET Ajax, Prometheus....I have ReadControls for ASP.NET Q3 2007.

I will try this skin and report back, thanks.

Could I ask, is there a cheap/free (!) upgrade path for people who have purchased the software in the last 2 months? 

Regards

Stephen
0
Sebastian
Telerik team
answered on 17 Apr 2008, 08:38 AM

Hello Stephen,

You are added as a licensed developer to a Single developer plus subscription purchase of our RadControls suite. With it you receive all new versions/upgrades of RadControls Classic/RadControls for ASP.NET AJAX (formerly known as Prometheus) for a period of one year at no additional cost.

Step by step instructions about how to upgrade our controls to another version or license you can find here.

Best regards,

Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Stephen
Top achievements
Rank 1
answered on 17 Apr 2008, 10:01 AM
Hi,

All I can see in Client.net is the ability to download Rad Controls for ASP.NET Q1-2008.

Are you saying  I should be able to upgrade to the ajax version (although I dont understand this naming convention as RadControls  is ajax enabled anyway).

Regards

Stephen
0
Paul
Telerik team
answered on 17 Apr 2008, 11:07 AM
Hi Stephen,

The new RadControls for ASP.NET AJAX is build on top of Microsoft’s next-generation web framework. The suite takes full advantage of the functionality of the AJAX framework, and delivers previously unattainable performance and features.

Please refer to the attached screenshot for details on where to download the suite from.

Regards,
Paul
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Stephen
Top achievements
Rank 1
answered on 17 Apr 2008, 11:52 AM
I dont see this option, all I get is RadControls for ASP.NET Q1-08.  Does this mean we bought classic and so cant upgrade for free to ajax path?
0
Stephen
Top achievements
Rank 1
answered on 17 Apr 2008, 11:56 AM
Its there now!!!

I swear it wasnt there an hour ago.

Thanks

Stephen
Tags
Grid
Asked by
Stephen
Top achievements
Rank 1
Answers by
Stephen
Top achievements
Rank 1
Dimo
Telerik team
Sebastian
Telerik team
Paul
Telerik team
Share this question
or