pagination and rendered data

pagination and rendered data

anandkulkarnianandkulkarni 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:

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    I suggest you show your code, or preferably a link to a page showing the issue as per the forum rules.

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Answer ✓

    Also the event on cell click to alert data is not working on later pages.

    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

  • anandkulkarnianandkulkarni Posts: 9Questions: 3Answers: 0

    Thanks a ton Allan. drawCallback worked for ratings :D

  • anandkulkarnianandkulkarni Posts: 9Questions: 3Answers: 0

    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?

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Answer ✓

    Check the draw() documentation.

    Pass in false or oe of the other options to hold the paging.

    Allan

  • anandkulkarnianandkulkarni Posts: 9Questions: 3Answers: 0

    Live Long Allan :D

This discussion has been closed.