Toggle days on and off in a calendar view? - fullcalendar

I need to store the 'on' days (in this case, the 'available' days) in the database and show the 'available' days on a monthly or weekly view.
I need to allow a user to toggle days on a the calendar on and off. I've been looking a fullcalendar and some bootstrap options such as http://bootstrap-calendar.azurewebsites.net/.
With Fullcalendar, is there a way to toggle a day on and off in a weekly or monthly view? and generate the corresponding AJAX call?

Sure, you can use background events to show that a day is available or not available. And dayClick to toggle it back and forth. Since background events are events, they should store and fetch from the DB.
Keep in mind, that all this needs to be coded though. It doesn't automatically code a day toggle. But these things aren't too difficult or long to code and FC is built to facilitate this kind of thing.

Related

How to Show events that span multiple days as individual events on each day that it spans?

I am using a fullcalendar.js Version 2.4.0 and fullcalendar spans long events I.e Events which are From 3rd May to 5th May are show as a long Event Streched all over, but what I need to show is to span multi - day Events as Seperate Event on Each day
For Example in Image attached Below A Event Children's Petting zoo is a 3 day Event, so it is shown 3 times seprately on these days which is giving it a clean look. I want to show in the same way.
How can Acheive this as given in Screenshort with Fullcalendar in All the Views.
See Screenshort of my calendar and point 2 which I want to do.

FullCalendar - week view events display vertical order

Is it possible to show the events one below the other like the image?i want view week with events vertical order
sorry my English is not perfet
No, it is not possible without editing the source code of fullcalendar.
The best you can do is set eventOverlap: false so that users at least cannot drag and drop the events to have the same time.
You can also try fullcalendar's scheduler plugin which will do almost the same. Search the documentation for vertical resources layout.

Layout of Google calendar populated from ical feed

I'm populating a number of calendars in Google Calendar via dynamically generated iCalendar feeds. These calendars are being correctly imported into Google Calendar, but their events appear intermixed as shown below:
Is there a way I can modify the iCal feed to encourage Google to render a single calendar in a single vertical column? It gets confusing when viewing our 12-13 calendars!
I don't believe that there is a way to change this. The layout is based on the starting time of events, and does not care from where the event was imported.
Although not entirely as per your question, you could change something inconsequential like the seconds of the start date of the event. For example, all items in your first feed start with the seconds set to :01, all items in your second feed start with the seconds set to :02 etc. This will not help you when you have an item in the second feed but nothing in the first feed, but should ensure that when you have two items with the same nominal start time the items are ordered correctly in the calendar.

Want to Display 3 months at a time in FullCalendar (adam Shaw)

I want to be able to view 3 large months at a time using FullCalendar by Adam Shaw in my WP site. Possible? In other words, current month, plus two more. A 90 day events Calendar starting with the if the current date falls in a given month. Example, today is July 26, so display July, Aug, Sept.
Any ideas? I am calling it for use in a WP Events manager application.
Thanks,
Create three FullCalendar instances next to each other:
Set the defaultView for all three to 'month'.
Disable the previous and next buttons for two of the three calendar instances by manipulating their headers.
Disable any other views (like agendaDay, agendaWeek, etc.) in all calendar headers.
Whenever the viewDisplay callback is called on the calendar with the previous and next buttons, update the other calendar's date using gotoDate.
If you also need to use a week and/or day view, you may wish to set them up in a similar way, although I can imagine that would be confusing. You could also hide (using CSS) two of the three calendars when the user navigates to day or week view, and make them reappear when the user selects month view again. You probably need some CSS hocus pocus anyway to make it all look slick, but I think it should be doable.

Display calendar control with week number and capture week number when user selects and display in textbox

I am using a Ajax calendar control to pop up calendar from text box, want to display the week number in the calendar control itself, after user selects a week in the week mode (SelectionMode="DayWeek"), would like to display that week number in the text box. Preferably looking to implement using asp.net calendar control not jQuery.
Appreciate any assistance.
Thanks
Thought not to use the jquery, due to the ease and so many folks having solution out there i found the solution.
http://jsbin.com/eliki/16/
one of the issue is the the SQL server week (mostly in US) starts from Sunday, but iso8601Week starts from Monday, I did work around this by placing the weekend towards the end and disabling. Let me know what you think of the solution or have better solution out there.
http://jsbin.com/eliki/16/
Ujjwal

Resources