iDisplayStart fails with less data than last load

iDisplayStart fails with less data than last load

orhangilmourorhangilmour Posts: 3Questions: 2Answers: 0

Hi all!

First of all thank you all for this great plugin. it's awesome. this is my first time falling in love with a plug-in.

Anyway, we have a weird situation here. It's obvious information that when stateSave set to true, plug-in saves variables of table. now i am displaying 100 record per page and lets assume user current on page 4 (400-500 records). when page is reloaded or any other filer applied on the same page. iDİsplayStart not changing. So if there's less data then previous page, server returns empty result. so table fails.

So far, i've tried to use fnDisplayStart plug-in and tried to set first page on initcomplete event , but not yet achieved my goal.

Thank you all for your kind answers.

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @orhangilmour ,

    stateSave should return to the previous state, nothing more. So if a filter is applied, that should be stored and used when the page reloads, with the same records and paging. See this example here for a demonstration of that.

    Can you reproduce the problem on that link? If so, please can you provide steps on what to do, or if not, could you link to a test case which demonstrates the problem.

    Cheers,

    Colin

This discussion has been closed.