pagination and rendered data
pagination and rendered data
anandkulkarni
Posts: 9Questions: 3Answers: 0
Hello,
I am using datatable to display customer information where i am using 'mRender' to show rating of the particular customer.
When pagination is active, first 10 records showing rating but the next pages fail to render it.
Also the event on cell click to alert data is not working on later pages.
Can you suggest any help?
This question has accepted answers - jump to:
This discussion has been closed.
Answers
I suggest you show your code, or preferably a link to a page showing the issue as per the forum rules.
You most likely need to use a delegated event handler, as noted in the FAQs. See also this example.
The rating issue is likely to be a similar problem, but I can't say for certain without a link to the page. It might be that you need to use
drawCallback
to initialise your rating code on the other pages.Allan
Thanks a ton Allan. drawCallback worked for ratings :D
One more thing, when i go to 2nd page and change cell data and draw(), its taking me to the first page after draw.'
How can i stay on that page after draw?
Check the
draw()
documentation.Pass in
false
or oe of the other options to hold the paging.Allan
Live Long Allan :D