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

Grid - Multi row editing -

1 Answer 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Oded
Top achievements
Rank 1
Oded asked on 27 Apr 2009, 08:38 AM
Hello,

I have a grid the allows multi row editing

<telerik:RadGrid ID="entriesGrid" runat="server" 
        AllowPaging="True" AutoGenerateColumns="False" Skin="Gray" GridLines="Both" AllowMultiRowEdit="True" 
        ShowStatusBar="true" Font-Names="Arial"

The grid is working fine. The problem is that I would like to have a different background color / image for alternate rows.
In the HTML every row is rendered like this:

<TR id="ctl00_mainContentPlaceHolders_entriesGrid_ctl00__4" class="GridEditRow_Gray"

There is no altrow class. Is it because of the AllowMultiRowEdit?

How can I modify the grid to change the background for the alternate row in edit mode?

Thanks,

Oded

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Apr 2009, 09:28 AM
Hi,

Have you tried with the AlternatingItemStyle ? If not give it a try as shown below.

ASPX:
 
<AlternatingItemStyle CssClass="Class1" /> 
              <ItemStyle CssClass="Class2"  /> 

style.css:
 
<head runat="server">          
    <title>Untitled Page</title> 
    <style type="text/css" > 
     .Class1 
      { 
       background-color:Red ; 
      } 
     .Class2 
      { 
      background-color:Blue ; 
      }  
     
    </style> 

Thanks
Shinu



Tags
Grid
Asked by
Oded
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or