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

How can I can disable the zebra effect of a grid by setting the ClientSettings -> EnableAlternatingItems property of the grid to false

2 Answers 169 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Herman Gouw
Top achievements
Rank 2
Herman Gouw asked on 19 Nov 2009, 12:45 AM
Hi,
I am using Telerik RadControls for ASPNET AJAX Q3 2008 on my current project.

I would like to disable the zebra effect on the grid on one of the web forms.

According to http://www.telerik.com/help/aspnet-ajax/grdcreatingnewskins.html I can do so by setting the ClientSettings -> EnableAlternatingItems property of the grid to false.

However the property does not seem to exist, and it is not possible to do this 

1. At design-time as follows:
    <telerik:RadGrid ID="radGrid" runat="server">
        <ClientSettings EnableAlternatingItems="false">
            <Scrolling UseStaticHeaders="true" />
        </ClientSettings>
    </telerik:RadGrid>

2. Programmatically as follows:
    this.radGrid.ClientSettings. EnableAlternatingItems  = false;

Can you please tell me how to do this?

Thanks & regards,
Herman Gouw

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 19 Nov 2009, 04:33 AM
Hello Herman,

The EnableAlternatingItems property is available from Q1 2009 (version 2009.1.311) of the RadGrid control. So since you are using an older version, you would have to upgrade the controls to later versions to make use of this property. Also here's a kb article on how to upgrade your controls from an older version to the latest:
Updating RadControls for ASP.NET to another version or license

Thanks
Princy.
0
Herman Gouw
Top achievements
Rank 2
answered on 19 Nov 2009, 04:48 AM
Thanks Princy for the quick reply.
Tags
Grid
Asked by
Herman Gouw
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Herman Gouw
Top achievements
Rank 2
Share this question
or