Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"view more" button disapear when i go to next month and go back #5

Open
glermgomes opened this issue Feb 21, 2011 · 4 comments
Open

Comments

@glermgomes
Copy link

Using the arrows buttons to navigate, when i go to other month and go back to prev month the "view more" button disapear, but the events is hide correctly.
I check on the implementation, the delegate of navigator buttons call the resetEventsRangeCounts(), is called after the renderEvents, causing the problem. The button "view more" is reder but "resetEventsRangeCounts" is call and destroy then.

I try fix this without success.

Thx,

Guilherme

@glermgomes
Copy link
Author

well,
i create a var to store where the "view more" appears.
now, on eventRender function, when render "viewMoreButton" i put this line:

self.opts.viewMoreActive[getDateFromCell(td, self.calendar).toString()] = true;

now the day who use "viewMore" is set on viewMoreActive var.
then, on resetEventsRangeCounts function, before i drop the button i make this check:

if(!instance.opts.viewMoreActive[getDateFromCell($(this), instance.calendar).toString()])

now the function is write so "resetEventsRangeCounts(instance)"
"instance" is the "self" var

is important to clear the viewMoreActive once a event is drop or a new request of events is make, for me just redirect the rerenderEvents method is enough.

this is a ugly implementation, but is working for me.

@sgreenfield
Copy link

Thanks, I will definitely look into this and get this fixed as soon as possible.

@sgreenfield
Copy link

Could you provide a link to an example of this? It could be due to the fact that the events have to be rendered as a function. If you provide me with a link to the calendar that is having this problem, I should be able to help.

@kantravigupta
Copy link

view more functionality is not working?
I use the same sample code by your example but its not limiting the events to 4.
Please check and suggest some solution.
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants