Welcome Guest Search | Active Topics | Sign In | Register

Date Picker Databinding Options
sandeep
Posted: Friday, February 25, 2011 1:06:15 AM
Rank: Newbie
Groups: Member

Joined: 2/25/2011
Posts: 1
Where can I find a sample code to Databing the datepicker calender with dataset or
Change the color of the cell on dayrender event.

I was able to use asp.net calender control and change cell color based on the information I have in database but for datepicker I was not able to find a syntax to change

I am looking for a calender control which can popup like datepicker and show the available date by color which I would like to do based on database field

Thank you very much
eo_support
Posted: Friday, February 25, 2011 8:02:39 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will need to load your data into memory first, then handle the DatePicker's DayRender event based on whatever information you have in your memory (in theory you can also do a database query whenever DayRender is called, However that would be inefficient because DayRender is called for each day cell). The second part has nothing to do with your database.

There is no simple "syntax" to do so. It needs to be done by code. Here is a sample demonstrating how to handle DayRender event:

http://demo.essentialobjects.com/Demos/Calendar/Features/Scheduler/Demo.aspx

Note the "holidays" are in 2009 and 2010 (Hasn't been updated for 2011 holidays yet). So you will need to scroll back to see result.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.