How would I change the background of a specific row on a server side and a client side. I would like to do it in two ways, one with an image and another way with standard color code.
Thank you very much.
you can do it on the server side using ItemDataBound event. You can set the background image by specifying cssclass property of e.item.
VB.NET
ProtectedSub rgS_ItemDataBound(ByVal sender AsObject, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgS.ItemDataBound
SelectCase e.Item.ItemType
Case GridItemType.AlternatingItem, GridItemType.Item
e.Item.BackColor = Drawing.Color.AliceBlue
e.Item.CssClass = "CustomRow"'this customrow css class will reference 'background image.
EndSub
On the client side you can use OnRowDataBound event. you will specify the event in the clientsettings in radgrid <CODE><telerik:RadGrid ID="RadGrid1" EnableViewState="false" runat="server"
AllowPaging="true" AllowSorting="True" AllowFilteringByColumn="true" GridLines="None"> <ItemStyle Wrap="false" /> <MasterTableView AllowMultiColumnSorting="true" TableLayout="Fixed"> <Columns>