Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Calendar DayRender

Calendar DayRender

Scheduled Pinned Locked Moved ASP.NET
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oskardiazdeleon
    wrote on last edited by
    #1

    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

    G 1 Reply Last reply
    0
    • O oskardiazdeleon

      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

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      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;

      O 1 Reply Last reply
      0
      • G Guffa

        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;

        O Offline
        O Offline
        oskardiazdeleon
        wrote on last edited by
        #3

        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

        G 1 Reply Last reply
        0
        • O oskardiazdeleon

          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

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          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;

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups