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. To add check box to each day of calendar control at design time

To add check box to each day of calendar control at design time

Scheduled Pinned Locked Moved ASP.NET
design
7 Posts 3 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.
  • S Offline
    S Offline
    SunithaNallana
    wrote on last edited by
    #1

    :)Hi to all! In my aspx page i am having a calendar control,which represents attendance status(either present,absent or leave)of a student.My need is to add a check box at design time to each day of calender control.At runtime i want to check mark as needed. pls provide me coding to add a check box . SunithaNallana

    J S 2 Replies Last reply
    0
    • S SunithaNallana

      :)Hi to all! In my aspx page i am having a calendar control,which represents attendance status(either present,absent or leave)of a student.My need is to add a check box at design time to each day of calender control.At runtime i want to check mark as needed. pls provide me coding to add a check box . SunithaNallana

      J Offline
      J Offline
      John ph
      wrote on last edited by
      #2

      SunithaNallana wrote:

      pls provide me coding to add a check box .

      I really doubt whether this is possible for anyone in this forum with the information you provided. Why don't you google and find a Multi-Select Calender Control on the web which will absolutely save your coding time. But still you will have to spent some time exploring the properties and methods of the component to program it.

      - Regards -
         JON


      Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


      S 1 Reply Last reply
      0
      • J John ph

        SunithaNallana wrote:

        pls provide me coding to add a check box .

        I really doubt whether this is possible for anyone in this forum with the information you provided. Why don't you google and find a Multi-Select Calender Control on the web which will absolutely save your coding time. But still you will have to spent some time exploring the properties and methods of the component to program it.

        - Regards -
           JON


        Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


        S Offline
        S Offline
        SunithaNallana
        wrote on last edited by
        #3

        Hi!! Pls let me know where do i lag behind providing the information. i have done above said requirement dynamically(at run time) in dayRender event of calender control but that event is getting executed every time the page is loaded that too 30 times(as many number of days in month).So i am trying to add check boxes at design time itself to avoid this looping.

        J 1 Reply Last reply
        0
        • S SunithaNallana

          :)Hi to all! In my aspx page i am having a calendar control,which represents attendance status(either present,absent or leave)of a student.My need is to add a check box at design time to each day of calender control.At runtime i want to check mark as needed. pls provide me coding to add a check box . SunithaNallana

          S Offline
          S Offline
          Sun Rays
          wrote on last edited by
          #4

          Hi, rather using calander control you can create calander using datalist. And then in itemTemplate of datalist you can add checkbox. Now think and try to do it yr own way... Best of Luck..

          Thanks, Sun Rays Rate this post if you like answer. My Articles

          1 Reply Last reply
          0
          • S SunithaNallana

            Hi!! Pls let me know where do i lag behind providing the information. i have done above said requirement dynamically(at run time) in dayRender event of calender control but that event is getting executed every time the page is loaded that too 30 times(as many number of days in month).So i am trying to add check boxes at design time itself to avoid this looping.

            J Offline
            J Offline
            John ph
            wrote on last edited by
            #5

            Are you using built-in ASP.NET Calender Control?

            - Regards -
               JON


            Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


            S 1 Reply Last reply
            0
            • J John ph

              Are you using built-in ASP.NET Calender Control?

              - Regards -
                 JON


              Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


              S Offline
              S Offline
              SunithaNallana
              wrote on last edited by
              #6

              Yes i have used built in calender control

              J 1 Reply Last reply
              0
              • S SunithaNallana

                Yes i have used built in calender control

                J Offline
                J Offline
                John ph
                wrote on last edited by
                #7

                Built-In calender control is not template control to add a checkBox or any child control. I don't think this is possible with that. I suggest you to create a your own Calender control with Datalist(Template Control) and CheckBox In the ItemTemplate of the DataList. The other person (Sun Ray) in the disscussion suggested the same. Either you have to find a calender control on the web which servers your requirement (It's available, Once i worked on similar problem) or you have to write your own control. Apart from these I don't see any other feasible solution to your problem.

                - Regards -
                   JON


                Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


                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