Calendar web control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have been using the DayRender event of the calendar control to format the
appearance of my calendar control, and it works ok.

However, because of the way the DayRender event works, it will fire once for
each day in the calendar control, so if i am displaying july, it will fire 31
times, even if i only require formatting for 2 particular days.

So, my question is, is there a more efficient way to access a day in the
calendar control. Can I somehow access only the cells i need?

thank you
 
CodeRazor said:
Hi,

I have been using the DayRender event of the calendar control to format the
appearance of my calendar control, and it works ok.

However, because of the way the DayRender event works, it will fire once for
each day in the calendar control, so if i am displaying july, it will fire 31
times, even if i only require formatting for 2 particular days.

So, my question is, is there a more efficient way to access a day in the
calendar control. Can I somehow access only the cells i need?

thank you

It isn't really that inefficient. Just ignore the ones you don't want to
render, there's hardly any overhead.

Luck Wiebe
 
Hi,

That is the best way of doing it, otherwise you will get mangled guessing
where the day you want is located inside the table, if for some reason you
want to change it later you have to start all over again.

just use the DayRender, and unless you notice some real performance penalty
(which I doubt) do not look further.

cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top