4 Answers, 1 is accepted
0
Hello Paul,
Please test the example project I created in order to illustrate a possible approach.
I hope it helps.
Best regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Please test the example project I created in order to illustrate a possible approach.
I hope it helps.
Best regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

Princy
Top achievements
Rank 2
answered on 31 Oct 2008, 11:48 AM
Hello Paul,
You can also try out an alternative solution for the same scenario as shown below.
cs:
Thanks
Princy.
You can also try out an alternative solution for the same scenario as shown below.
cs:
protected void RadGrid2_ItemDataBound(object sender, GridItemEventArgs e) |
{ |
if (e.Item is GridDataItem) |
{ |
GridDataItem dataItem = (GridDataItem)e.Item; |
int length = dataItem.Cells.Count; |
for (int i = 0; i <length ; i++) |
{ |
dataItem.Cells[i].Attributes.Add("onmouseover", "this.style.backgroundColor = 'blue';"); |
} |
} |
} |
Thanks
Princy.
0

Paul
Top achievements
Rank 1
answered on 31 Oct 2008, 12:40 PM
Thanks a lot Daniel and Princy, appreciate you help. Will try both solutions out and let you know how I get on.
From your solution Daniel, it appears that you have code in there to handle the onClick event of the cell as well, I will actually need that functionality as well so it looks promising.
From your solution Daniel, it appears that you have code in there to handle the onClick event of the cell as well, I will actually need that functionality as well so it looks promising.
0
Hello Paul,
Please let us know whether you managed to achieve the desired functionality or you need further assistance.
Regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Please let us know whether you managed to achieve the desired functionality or you need further assistance.
Regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.