-
Notifications
You must be signed in to change notification settings - Fork 64
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
Show all table rows on first page load when using reloadCallback #205
Comments
Call search() maybe ? |
|
The purpuse of the @chrisvel just for better understanding, your error happen only when you declare everything in the If it is the case, I have to investigate to understand what is the bug. |
@Zizzamia yes like your example. I don't think it's a bug, there might be a workaround. Imagine listing a table with all elements and then try to filter the main object in order to exclude some. The way it works now is that it shows nothing until a GET request is trigger when the callback is called. |
@Zizzamia I found a workaround but I am not sure how much safe it is.
Please advice and If you agree you could add it to the documentation. EDIT: This works only on page load and not when moving between pages. Logically,
should be enough but it doesn't work. Any help will be greatly appreciated because I am using it in a big project right now and have been stuck for several days. |
Hi Zizzamia , Hope you are doing great.I am using (http://zizzamia.com/ng-tasty/directive/table-server-side/reload ) library. When the table is initially displayed, the object isn't fetched with a GET request, but only with the reloadCallback. How can I trigger the table load on initial page display ? I am getting same problem in my code.How can this problem sovle? |
I am also facing this problem. Actually the default bind-resource-callback + bind-filters already serve my needs (I too wish to load up all rows in table onload, and add filtering options on UI). However I spot there are some minor issues with the way it watches filter variable (debouncing problem?) which results in inconsistent search data so I end up using bind-reload so I can limit the ajax call. I am pretty much done, except I need a way to load all the data into the table on page load unlike the example. BTW thanks for the work on this, seems to be a much cleaner solution than using the angular-datatable hack. [UPDATE] so using bind-theme="customTheme" and $scope.customTheme = { loadOnInit:true } was able to solve my problem. |
Excellent, thank you! |
Ty, also worked for me!! gj |
Sorry guys, had very intense 6 months with Plan (https://getplan.co), spending most of my time with Angular 2 recently. Here guys the documentation about Also @newbro, what name you suggest? Open to any suggestion :) |
In your example http://zizzamia.com/ng-tasty/directive/table-server-side/reload you can reload the table when the reloadCallback is called. But when the table is initially displayed, the object isn't fetched with a GET request, but only with the reloadCallback. How can I trigger the table load on initial page display ?
The text was updated successfully, but these errors were encountered: