Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
903
Mergecells and Rowspan
posted

I want to achieve a Calendar in a grid.  I have the day split into 15 minute intervals and I write into it the text of events.  If an event takes more than one 15 minute slots then it gets written into all relevant slots.  I want to merge the cells that have the same content.  The Mergecells property looks like it is the right thing here but if I use that then all the blank cells merge into one big white space with no gridlines.  This is not good when I have several calendar columns on the grid.  If I use Rowspan to merge the cells then I have to write code to manage the merging. 

Rowspan goes wrong when there is a background event across a large section of the day.  In my app it is still possible to book an event during these background events.  The event text is then written into the appropriate grid cells, overwriting the background event.  However they don't show.  The rowspan setting on the background event means that , as it says in the help, 'other cells in the merged group will not be displayed in the browser'.  So compled code is required to rewrite the background event around the new event.

If it set Mergecells instead of Rowspan then that part of the grid all looks great, but of course the rest of the grid blanks out. So neither quite works.  In some other suppliers grids blank cells don't merge which seems more sensible.

Any ideas to help my calendar problem or am I looking at having to write complex code and submit a change request?