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

[Solved] Rowstyle not setting in full height

6 Answers 193 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Regeesh Joseph
Top achievements
Rank 1
Regeesh Joseph asked on 19 Apr 2013, 05:15 AM
I have a radgrid as in image. I uses Sunset as skin. Its header and rowstyles color not in full height of the row.

<telerik:RadGrid ID="rgGoodsOutwards" runat="server" AllowFilteringByColumn="false"
                                            AllowPaging="false" AutoGenerateColumns="False" BackColor="#FFFFF8" BorderStyle="Solid"
                                            CellPadding="0" GridLines="Both" Skin="Sunset" TabIndex="7" Width="98%" Height="320px" >
                                            <AlternatingItemStyle BackColor="AntiqueWhite" Height="30px" />
                                            <MasterTableView PagerStyle-AlwaysVisible="true" Width="100%" HeaderStyle-ForeColor="White"
                                                HeaderStyle-BackColor="White"  ItemStyle-Height="30px">

Please help.


6 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Apr 2013, 05:40 AM
Hi,

Try the following CSS.
CSS:
.RadGrid_Sunset .rgSelectedRow td
{
background-color:Red !important;
}

Thanks,
Shinu
0
Regeesh Joseph
Top achievements
Rank 1
answered on 19 Apr 2013, 06:14 AM
It doesn't work.
0
Shinu
Top achievements
Rank 2
answered on 22 Apr 2013, 04:47 AM
Hi,

Unfortunately I cannot replicate the issue at my end. Here is the CSS.
CSS:
.RadGrid_Sunset .rgSelectedRow td
     {
         border-bottom-color: none !important;
         background-color: Red !important;
     }
Attached is the screenshot.

Thanks,
Shinu
0
Venelin
Telerik team
answered on 23 Apr 2013, 11:11 AM
Hello Regeesh,

I recommend you to avoid setting the background and other styles with markup attributes when it is possible to do it with CSS. This approach is obsolete and will have negative effect on the performance.

Therefore, change the select background for the Sunset Skin with the following CSS

.RadGrid_Sunset tr.rgSelectedRow
{
    background: #fffff8;
}

Also, I am sending a sample project to demonstrate you the approach.

Kind regards,
Venelin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Regeesh Joseph
Top achievements
Rank 1
answered on 07 May 2013, 11:23 AM
This is not working. Please provide a workable solution if possible. And why you are telling using attributes inside markup is obsolete? This is the common method we use globally in all controls except in Telerik controls. Solutions you are providing for one version is obsolete in next version. Now none of your solutions are working in our current version Q3 2012 recently purchased.
0
Venelin
Telerik team
answered on 09 May 2013, 12:41 PM
Hi Regeesh,

I am not sure what is wrong on your side. On my side the sample project is running as expected in all major browser. For reference I am sending this video. Are you sure you added correctly the proposed CSS:

.RadGrid_Sunset tr.rgSelectedRow td{
    background: #e38443 0 -3900px repeat-x url('sprite.gif');
}
 
or another option is:

.RadGrid_Sunset th.rgHeader {
    background-image: none;
}
 
.RadGrid_Sunset tr.rgSelectedRow td{
    border-bottom: none;
    background: #e38443;
}

I hope this helps.

Kind regards,
Venelin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Regeesh Joseph
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Regeesh Joseph
Top achievements
Rank 1
Venelin
Telerik team
Share this question
or