My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 241: Event Hide/Show methods
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Jan 2010


Sign in to add a comment
 
Reported by naren...@gmail.com, Dec 10, 2009
i have events which fall into one of many categories. On top of the 
calendar i have a list of all the categories, and on clicking any one, 
only those events need to be displayed.
I tried doing this by attaching classes to events. and then using 

$(".fc-event").hide();
$(".selectedclass").show();

but, this ofcourse does not redraw the events. if a slot has multiple 
events, after selecting a category, i want only those events to occupy the 
full slot.

I tried, removeEvent, writing a filter function which removes all events 
other than those of the selected category. But then, the client events 
array completely loses the other events. so on clicking on another 
category, i need to fetch events again.

finally i use a custom url to fetch events only of the selected category. 
but this doesnt seem like the right way. because, initially i have 
received all the events onto the client, and it is a waste to query the 
server just for filtering purposes. 

i tried storing the clientEvents array into my own array variable, before 
doing a remove, to use that event list before further filtering. but that 
got too complicated.

a show/hide method would be great!



Dec 20, 2009
Project Member #1 adamrs...@gmail.com
hello narenana,

would storing them in separate array event sources
(http://arshaw.com/fullcalendar/docs/events-and-sources.php#event-sources) and then
using the 'addEventSource' and 'removeEventSource' methods
(http://arshaw.com/fullcalendar/docs/methods.php#methods) do the trick?
Jan 19, 2010
Project Member #2 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done
Sign in to add a comment

Powered by Google Project Hosting