No matching records found

No matching records found

nskwortsownskwortsow Posts: 120Questions: 0Answers: 0
edited November 2012 in Editor
Hi,
1) How can I customise the text "No matching records found"
2) Which event is fired when data tables is loaded with 0 records? I want to show/hide a div or modal on this event.
N

Replies

  • nskwortsownskwortsow Posts: 120Questions: 0Answers: 0
    aaData:


    DT_RowId: "row_2"
    PActive: "1"
    PEmail: "x"
    PMobilePhone: "1 555 555 5555"
    PNameF: "x"
    PNameL: "x"
    PYOB: "1983"
    >>>> RECORD HERE tblPatientProtocols: {PName:Nate test, PCreationDate:2012-11-12 13:02:17}

    DT_RowId: "row_3"
    PActive: "1"
    PEmail: "x"
    PMobilePhone: "1 555 555 5555"
    PNameF: "x"
    PNameL: "x"
    PYOB: "1977"
    >>>> NO RECORDS HERE tblPatientProtocols: {}
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    1. http://datatables.net/usage/i18n#oLanguage.sInfoEmpty

    2. There is no specific event for just that one case, but there are a number of ways to detected it - fnInitComplete the way I would suggest you do it. In that call back you can just check to see if the table has data or not: http://live.datatables.net/ofohut/edit#javascript,html

    Allan
This discussion has been closed.