Datatables not populating, Json Object from .net core 2.1 source.

Datatables not populating, Json Object from .net core 2.1 source.

simonAppSoftUKsimonAppSoftUK Posts: 7Questions: 2Answers: 0
edited October 2018 in Free community support

I have recently started moving a project to .net Core 2.1 and Datatables seem to be giving me some issues as there are no errors and the table doesnt populate any data.

Jquery -

The Json Object

HTML -

View -

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin

    That looks like it should work. Can you use the debugger to give me a trace please - click the Upload button and then let me know what the debug code is.

    Allan

  • simonAppSoftUKsimonAppSoftUK Posts: 7Questions: 2Answers: 0

    @allan Just trying to do that now, i keep getting an error saying i can only upload once a minute, but ive not actually uploaded anything i dont think!

  • simonAppSoftUKsimonAppSoftUK Posts: 7Questions: 2Answers: 0
    edited October 2018

    IGNORE

  • simonAppSoftUKsimonAppSoftUK Posts: 7Questions: 2Answers: 0

    In fact its otamip The other was on a different page sorry.

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin
    Answer ✓

    Ah - you've overridden the ajax.success option:

    "success": function (data) {
            console.log(data);
    }
    

    As the ajax documentation notes:

    success - Must not be overridden as it is used internally in DataTables.

    Remove that and it should populate.

    Allan

  • simonAppSoftUKsimonAppSoftUK Posts: 7Questions: 2Answers: 0

    Allan you're a superstar! Should read the doc more thoroughly!!

This discussion has been closed.