Handling column with null value.

Handling column with null value.

strokesstrokes Posts: 8Questions: 0Answers: 0
edited September 2012 in DataTables 1.9
Hi guys,
In JSON, I may have a column with null values in Objects.

I'm referencing these objects like
[code]"aoColumns" : [
{ "mData": "group.name" },
][/code]

What if group is null? It throws an exception('...parameter undefined'), all I want is to be empty if group is null.

Thanks

Replies

  • allanallan Posts: 63,395Questions: 1Answers: 10,451 Site admin
    Use sDefaultContent to specify what you want to use used for that case (might be an empty string, or `No data` or whatever you want.

    Allan
This discussion has been closed.