To add check box to each day of calendar control at design time
-
:)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
-
:)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
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.
-
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.
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.
-
:)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
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
-
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.
-
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.
Yes i have used built in calender control
-
Yes i have used built in calender control
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.