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

Add way to update data on demand and allow partial load of items. #109

Open
Kalyse opened this issue Dec 9, 2013 · 3 comments
Open

Add way to update data on demand and allow partial load of items. #109

Kalyse opened this issue Dec 9, 2013 · 3 comments
Milestone

Comments

@Kalyse
Copy link

Kalyse commented Dec 9, 2013

At the moment when you specify a source string, it loads everything.
The only way to update the data object is by reloading the entire page.

It would be extremely useful if you could clear the data and allow a re-fetch from the source URL.

If you could provide a custom "query" object that gets mixed in with the Gantt "page" id that would also be useful.

For example, you might want to request page 4, and you also might want to only show items that are marked with a specific label...

GET /resources/gannt?page=1&label=foo&cleared=0

I'd imagine you would achieve this by passing a callback function when you initialize that returns an object and is mixed in.

Thoughts?

@usmonster
Copy link
Collaborator

Thanks for the suggestion! This is definitely on the roadmap. (I think it may also be the gist of @FatGuyLaughing's issue #105.)

I like the generic way this is proposed, i.e., url and params as separate things passed to the $.get call. This can probably be done pretty cleanly with a trigger and a callback that expects the parameters, then reloads the source from the original url. It's on the list!

@jrdnrc
Copy link

jrdnrc commented Nov 25, 2014

@usmonster has this been implemented yet?

@usmonster
Copy link
Collaborator

@jrdnhannah Not yet, though pull requests are welcome! Certain bugs are more likely to be fixed before enhancements like this are implemented. In the meantime I should probably make a prioritized list of issues (probably using milestones)..

@usmonster usmonster added this to the n+2 milestone Dec 24, 2014
usmonster referenced this issue in usmonster/jQuery.Gantt Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants