DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » Bugs » Alignment getting screwed if number of columns increases?

Alignment getting screwed if number of columns increases?

I am using 3.7.1.0. If the number of columns increases to 10 or more with varying header text, then, the alignment of header and column gets screwed. I tried decreasing font size but did not help. Is there any wrap propert for header text which I can use after fixing header width so that its alignment with column stays correct? Also,Can I provide a horizontal scroll bar if the number of columns increase?At the moment If i have variable header text for every column, it is spoiling the alignment of header and column.

Sunil - 6/21/2007 9:46:31 PM
I will test the possibility of turning word-wrapping on in the BeforeHeaderRender event. However, it's hard to get longer text into the header because it influences the column widths. I will experiment with the longer texts a little bit and I will let you know.

You can have horizontal scrollbar only by placing DayPilot inside a div with style="overflow:auto" or overflow:scroll. I recommend turning off the DayPilot internal scrollbar by setting HeightSpec to Full. This will not be as smooth as the built-in scrollbar (no hidden events indicators).

Having both scrollbars supported in the control is not easy because the headers would have to scroll as well. I will analyze this possible feature but it will not come in the near future.
Dan Letecky - 6/21/2007 10:03:37 PM
We are having the same issue at our company. It would be nice to get this fixed sooner than later.
Pete P. - 9/4/2007 4:20:10 PM
I have fixed this issue. The fix will be included in DayPilot Pro 4.0 SP1 release.
Dan Letecky - 9/4/2007 8:32:54 PM
Post reply