snowieken
04-27-2009, 03:52 AM
If I have understood correctly, there is no direct way of telling the calendar control not to display the other dates of the currently selected month. I have found two possible work-arounds on day rendering, but they both have disadvantages. I don't know if I can explain these disadvantages correctly, so I've made an example page (http://www.woutichon.be/cal.aspx).
As you can see, the first method shows an extra row, because for some silly reason the calendar insists on showing an entire extra week of the next month. The text in the table cells has disappeared allright, but the cells still exist, so the extra row is fully shown.
The second method renders that extra row invisible, but it also renders the cells on the same row as the cells of the current month invisible, which means the dates are moved into different columns and are entirely wrong now.
Has anyone found a good workaround for this problem? What would be awesome is a combination.of the two methods: disable the text in the table cells of the months other than the currently selected one, and when there are no days of that month present in the table row, render the row invisible. I don't know if this is possible...
As you can see, the first method shows an extra row, because for some silly reason the calendar insists on showing an entire extra week of the next month. The text in the table cells has disappeared allright, but the cells still exist, so the extra row is fully shown.
The second method renders that extra row invisible, but it also renders the cells on the same row as the cells of the current month invisible, which means the dates are moved into different columns and are entirely wrong now.
Has anyone found a good workaround for this problem? What would be awesome is a combination.of the two methods: disable the text in the table cells of the months other than the currently selected one, and when there are no days of that month present in the table row, render the row invisible. I don't know if this is possible...