My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 485: Filter based on class
2 people starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Jul 2010


Sign in to add a comment
 
Reported by ciprian....@gmail.com, May 12, 2010
Hi,

A filter event would be a nice addition. I currently filter by class name but I don't know exactly how 
to redraw the calendar. 

If the number of events is high for one day and then I filter those events the height of the box stays 
the same. 

I could not find a way to reset the height of the box if some events are hidden based on the class 
name.

Thank you
Jul 5, 2010
Project Member #1 adamrs...@gmail.com
do you mean a way to only display some of the events some of the time? you could keep your events in separate arrays and use
addEventSource (http://arshaw.com/fullcalendar/docs/event_data/addEventSource/)
and
removeEventSource (http://arshaw.com/fullcalendar/docs/event_data/removeEventSource/)

as far as the height problem.  issue 304  might be an alternate solution...
https://code.google.com/p/fullcalendar/issues/detail?id=304
Status: Done
Sep 29, 2010
#2 oride...@gmail.com
i have a similar question.  i am working on a absence tracking program.  i already use the addEventSource/removeEventSource to track different types of absences such as vacation/dctrs appt/MedLoa.  i have toggle buttons that add/remove those eventsources so i can display certain types/ or all types of absences.  

i would like to keep this functionality but i also need to filter by employee name based on a text box.  as they type in the name it will filter the recordset.  i am using jquery autocomplete to pull up a list of names as droppable events in an external div.  as i type into the autocomplete i was wondering if there was a way to filter the events so that it would only show those people in the external div
Jan 15, 2015
#3 imapto...@gmail.com
One simple way to do this would be to add an event with a callback that gets triggered before you render an event, you pass the event object to the callback and it returns true of false if it should be rendered.

This way the user can write a function to determine if an event should be draw. that function can check say a list of checkboxes and filter based on that or filter based on event content or whatever. If the checkboxes change then the checkbox handler can request the calender be redrawn. I haven't looked at the code but I was thinking it would be nice if something like this existed.
Sign in to add a comment

Powered by Google Project Hosting