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

RadGrid - Color is not rendered in Mozilla

1 Answer 18 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mariyam Khambhati
Top achievements
Rank 1
Mariyam Khambhati asked on 14 Jan 2009, 11:29 AM
Hi ,

I am using RadGrid in my code, i am trying to add color to a label in Radgrid.
On itemDatabound event  i have the following code:
protected void GrdAlertList_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
{
((e.Item as GridItem).FindControl("lblAlertColor") as System.Web.UI.WebControls.Label).BackColor = ColorTranslator.FromHtml(item.Color.ToString());
                         }
              }

This works fine in IE and color will be displayed, but  color is not rendered in case of Mozilla firefox ?
Plese let me know the solution for this

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 14 Jan 2009, 01:08 PM
Hello Mariyam,

I created an example based on the code you shared with us. Please find it attached to this post.

Let me know whether this helps.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Mariyam Khambhati
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or