Is my approach right?

Is my approach right?

am 28.01.2008 23:58:03 von Diffident

Hi All,

I would like to customize the ASP.NET's calendar control so that if there
are any events for a particular day it would highlight/bold that day in the
calendar. I use a custom business logic to get the events which is not a
problem.

To bold the days that have events, I am developing a custom control and
overriding the OnDayRender event so that I add the "font-weight:bold"
attribute to the "cell" if there are any events on a particular "day".

Is my approach correct or are there any other better approaches?

Thanks!

Re: Is my approach right?

am 29.01.2008 09:48:20 von Sanket Sirotiya

Hi There,

You can try day render event of Calendar control and check your condition!

--
Thanks,
Sanket Sirotiya
(sanket.sirotiya@yahoo.com)
"Diffident" wrote in message
news:F5885BE6-B140-4DEE-AD07-2FB53622A901@microsoft.com...
> Hi All,
>
> I would like to customize the ASP.NET's calendar control so that if there
> are any events for a particular day it would highlight/bold that day in
> the
> calendar. I use a custom business logic to get the events which is not a
> problem.
>
> To bold the days that have events, I am developing a custom control and
> overriding the OnDayRender event so that I add the "font-weight:bold"
> attribute to the "cell" if there are any events on a particular "day".
>
> Is my approach correct or are there any other better approaches?
>
> Thanks!

Re: Is my approach right?

am 29.01.2008 17:58:01 von Diffident

If you read my post carefully you would have noticed that I am using the same
event that you suggested. I wanted to check if that was the right approach or
not!

"Sanket Sirotiya" wrote:

> Hi There,
>
> You can try day render event of Calendar control and check your condition!
>
> --
> Thanks,
> Sanket Sirotiya
> (sanket.sirotiya@yahoo.com)
> "Diffident" wrote in message
> news:F5885BE6-B140-4DEE-AD07-2FB53622A901@microsoft.com...
> > Hi All,
> >
> > I would like to customize the ASP.NET's calendar control so that if there
> > are any events for a particular day it would highlight/bold that day in
> > the
> > calendar. I use a custom business logic to get the events which is not a
> > problem.
> >
> > To bold the days that have events, I am developing a custom control and
> > overriding the OnDayRender event so that I add the "font-weight:bold"
> > attribute to the "cell" if there are any events on a particular "day".
> >
> > Is my approach correct or are there any other better approaches?
> >
> > Thanks!
>
>