Calendar DayRender
-
Is there a way to force a day render? I have 3 calendars on one page. I am using the .Visible feature to hide them until a date is selected ont he first, then second. However depending on the first date selected I need to remove values from the second calendar and so on for the third. How can i force a dayrender on a click event? thanks
-
Is there a way to force a day render? I have 3 calendars on one page. I am using the .Visible feature to hide them until a date is selected ont he first, then second. However depending on the first date selected I need to remove values from the second calendar and so on for the third. How can i force a dayrender on a click event? thanks
-
oskardiazdeleon wrote:
How can i force a dayrender on a click event?
You don't have to do that. A DayRender event is raised for every day in every visible calendar, you just have to use it.
--- single minded; short sighted; long gone;
Guff thanks for the response. I must not be explaining my challenge properly. It seems to me that the calendars render on load right? I need to be able to control when the calendar renders protected void slCalendar_DayRender(object sender, DayRenderEventArgs e) { //inside here is where i am setting all my dates to blackout based on a dataset //i am bringing in from the database. My blackout list is created here. } This is where the date rendering is happening. What I would like to do is add to the blackout list for the second calendar. How do I dissable cells outside of the sl_Calendar_DayRender? Thanks
-
Guff thanks for the response. I must not be explaining my challenge properly. It seems to me that the calendars render on load right? I need to be able to control when the calendar renders protected void slCalendar_DayRender(object sender, DayRenderEventArgs e) { //inside here is where i am setting all my dates to blackout based on a dataset //i am bringing in from the database. My blackout list is created here. } This is where the date rendering is happening. What I would like to do is add to the blackout list for the second calendar. How do I dissable cells outside of the sl_Calendar_DayRender? Thanks
oskardiazdeleon wrote:
It seems to me that the calendars render on load right?
No, as everything else in the page, they render on render.
oskardiazdeleon wrote:
I need to be able to control when the calendar renders
In that case you have to pull it out of the page and render it yourself.
oskardiazdeleon wrote:
This is where the date rendering is happening. What I would like to do is add to the blackout list for the second calendar. How do I dissable cells outside of the sl_Calendar_DayRender?
You have the data before rendering, right? Why don't you create the list before the rendering, so that you can use it in the DayRender events.
--- single minded; short sighted; long gone;