Is it possible to use fnAddData without updating info and other internal structures like fnOpen?

Is it possible to use fnAddData without updating info and other internal structures like fnOpen?

jamillerjamiller Posts: 27Questions: 0Answers: 0
edited August 2013 in General
Background:
I have data that can have "matching items" as a property of the object. The MatchingItem is of the same type as the parent.
Example:
[code]
{
aaData: [
{
Description: "Test",
Name: "Walter White",
MatchingItems: [
{
Description: "Another description",
Name: "Walter White"
}
]
}
]
}
[/code]

On fnCreatedRow I check the object for any MatchingItems and draw them to the table with fnAddData but it's also updating the info (Showing 1 to 3 of 3 entries) and I don't want it to. I could use fnOpen but I have to manually create the html. Using fnAddData I can just pass in the object and have DataTables create it for me which is a huge benefit because of my use of mRender.

Is this possible?

Replies

  • jamillerjamiller Posts: 27Questions: 0Answers: 0
    edited August 2013
    Solved!

    Ok, so I wrote a custom plugin that reads the aoColumn property of oSettings and applies the mRender function to the dataset. This will deliver the html without having to manually create it. I then have another plugin function that is basically the same as fnOpen that will draw another row to the table, except it doesn't first draw a row with one cell and then the content since I just another complete row.
This discussion has been closed.