![]() |
Changing the color of cell on mouse over event in calendar control
Hi,
I want to make the color of a cell change in my calendar control, whenever mouse is brought over that particular cell. How can I achieve this functionality?? Thanks, Shivani |
Re: Changing the color of cell on mouse over event in calendar control
Garg wrote: > Hi, > > I want to make the color of a cell change in my calendar control, > whenever mouse is brought over that particular cell. How can I achieve > this functionality?? > > Thanks, > Shivani Here the example: cell.Attributes["onmouseover"] = "this.style.backgroundColor='#ff0000';"; cell.Attributes["onmouseout"] = "this.style.backgroundColor='#0000ff';"; Or if existing background color of the cell is set by the style sheet or it is inherited from parent element: cell.Attributes["onmouseover"] = "this.oldBGColor=this.style.backgroundColor;this.s tyle.backgroundColor='#ff0000';"; cell.Attributes["onmouseout"] = "this.style.backgroundColor=this.oldBGColor;"; |
| All times are GMT. The time now is 06:21 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.