API jumpToData won't work if I set options to DataTable

API jumpToData won't work if I set options to DataTable

pietstephpietsteph Posts: 4Questions: 1Answers: 0
edited August 2019 in Free community support

The API jumpToData never work when I set options to DataTable. (Just set locale in data table options)
var dt = $('.datatable').DataTable(tableOptions);

But, it works when I empty the parameter.
var dt = $('.datatable').DataTable();

Is it a bug or something?

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    Hi @pietsteph ,

    It works for me here. Could you look at that, please, and see if it helps. If it's still not working for you, please can you update my example, or link to your page, so that we can see the problem.

    Cheers,

    Colin

  • pietstephpietsteph Posts: 4Questions: 1Answers: 0

    Hi, I edited your code. I added language option and it didn't work. I think the language options caused it.

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    If you want us to take a look, can you send the link, please.

  • pietstephpietsteph Posts: 4Questions: 1Answers: 0
  • colincolin Posts: 15,144Questions: 1Answers: 2,586
    Answer ✓

    Ah, I see - in that case, because of the Ajax request, you need to do something like this. There's an explanation of that on this post.

    C

  • pietstephpietsteph Posts: 4Questions: 1Answers: 0

    Thank you so much. It works really well

This discussion has been closed.