InitComplete and paging
InitComplete and paging
ivchooo
Posts: 8Questions: 5Answers: 0
Hi, I try to use IntiComplete function to call js function when the whole table is created. But It doesn't work when I go to another page. I use initComplete to aggregate sum in a group . I add initComplete to the example
https://datatables.net/examples/advanced_init/row_grouping.html
And It's work fine when the table is generated but It crashs on page click. Any suggestions to make aggregation work though paging.
This discussion has been closed.
Answers
I am experiencing this same issue. This prevents creating dynamic elements offering flexibility in my table.
Any response? Alternatives?
https://datatables.net/reference/event/page is fired each time the page is changed
I am experiencing the same thing. I cannot use the page event since that fires BEFORE the row grouping is complete. Is there an event that fires AFTER the row grouping completes?
Does the
rowGroup.endRender
fit your needs?Kevin
endRender fires for each group instead of after all groups have been rendered. I may be able to use this, however, as I need to insert a header row for each of the groups. Thanks for the suggestion.
The issue remains, however, that the initComplete event needs to fire after all the rowGroups are complete.
initComplete
does run after the row grouping. However this is only run once after Datatables has initialized. From then on you can use thedraw
which is fired after rowGroup is complete. You can see an example here:http://live.datatables.net/yugusibo/1/edit
First it will output the group(s) processed by rowGroup then either text indicating init complete or the draw event.
Kevin
Hi.. I'm using Start and end Render in which on load of table i'm using collapse td i also need to collapse end render along with TD of start render can some one help me on this
What is the alternative here? I'm having the same problem.
Seems like there are a few different questions here. Maybe you can describe what it is you are trying to do.
Kevin