3

I want to divide days into sections, for example there are a lot of events in one day, and they take place in different rooms (A, B, C), I want to divide each days into columns A, B, C to separate events from different rooms. There is any way to do this?

brooklyn
  • 31
  • 1
  • 2

2 Answers2

1

I had the same prerequesites and I will do this way:

In fullcalendar options:

  • Create a fullcalendar "control" with title, prev, next and today.
  • Create N fullcalendar "events" without navigation, and set each title to each room.

You should apply some tricks to render nice calendars :

  • Calendar "control": hide body fc-content (CSS display:none)
  • Second Calendar and: hide left axis fc-agenda-axis (CSS width: 0px)

In your data and js handling:

You can start with this jsfiddle : http://jsfiddle.net/8ZM4x/1/

And then replace events source with yours :

$('#mycalendar1').fullCalendar(
            {
                    events: [     
                          ...
                    ]
           }); 
Community
  • 1
  • 1
Doomsday
  • 2,650
  • 25
  • 33
  • It would be great if you could post a jsfiddle. Thanks. – brooklyn May 21 '11 at 08:41
  • @Doomsday - can you elaborate a little? I need to do this, too, only I need to divide the day into nine parts (nine rooms). Could you provide an example, please? – bgmCoder Jan 15 '14 at 22:58
  • I placed a feature request with the FullCalendar folks. – bgmCoder Jan 16 '14 at 02:04
  • Added a jsfiddle where you can see several fullcalendar and only one controller. – Doomsday Jan 16 '14 at 09:00
  • Thanks for the help, Doomsday. Can you get it it into, oh, say five columns? For my needs, I need five columns that will run the vertical length of each day so I can add events to any time in the column. I'm on the verge of hacking the library myself if I can't figure something out. – bgmCoder Jan 17 '14 at 04:30
  • I gave you my +1 for the fiddle. – bgmCoder Jan 17 '14 at 04:41
  • Three, five or ten columns, you just need to add more calendars for each column you need. About height, you need to use the official settings without any hacks. – Doomsday Jan 20 '14 at 09:34
0

There is a fork of the fullCalendar library that will provide this functionality - they call it a Resource View.

http://tux.fi/~jarnok/fullcalendar-resourceviews/

Check out my answer to this thread for more information.

Community
  • 1
  • 1
bgmCoder
  • 6,205
  • 8
  • 58
  • 105