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

grid edit template alternate row color

2 Answers 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Prathibarani
Top achievements
Rank 1
Prathibarani asked on 18 Jun 2013, 04:21 PM
Hi,
     We are using RadGrid like this: Using default skin


         <telerik:RadGrid ID="rgdAccts" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None"
            AllowSorting="True" AllowMultiRowEdit="True"
            OnItemDataBound="rgdAccts_ItemDataBound" OnBiffExporting="rgdAccts_BiffExporting" >
        <ClientSettings AllowExpandCollapse="false" AllowGroupExpandCollapse="false">
            <Selecting EnableDragToSelectRows="false" />
            <Scrolling AllowScroll="true" />
            <Resizing AllowColumnResize="true" AllowResizeToFit="true" ShowRowIndicatorColumn="false" />
        </ClientSettings>
        <MasterTableView DataKeyNames="AcctID">
           .........
              grid bound columns....
              <telerik:GridTemplateColumn DataField="PermissionID" UniqueName="PermissionID">
                    <EditItemTemplate>
                        <asp:RadioButtonList ID="rblPermission" runat="server" DataValueField="Custom"
                            DataTextField="ValueCustom" OnLoad="rblPermission_Load" RepeatDirection="Horizontal"
                            CssClass="grid-radiobuttonlist" />
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
 
          When the page is loaded and look into html, all the rows are getting displayed as 'rgEditRow'. No alternate row is Shown. So, alternate row colors are not displayed. Entire grid (all rows) are of same color. We need to apply alternate row color style to this grid. When I looked into default skin, I see styles only for rgRow, rgAltRow and rgEditRow. So, how can I apply different colors to alter rows. I prefer to do it in skin rather than doing in the grid locally. Because we have similar requirements on many asp.net pages.

Thanks,
Prathiba

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Jun 2013, 04:38 AM
Hi,

Please have a look into the following forum thread, which discussed the same.

Thanks,
Shinu.
0
Shinu
Top achievements
Rank 2
answered on 19 Jun 2013, 04:41 AM
Hi,

Please have a look into the following forum thread, which discussed the same.
Alternating Rows

Thanks,
Shinu.
Tags
Grid
Asked by
Prathibarani
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or