display show child rows (extra detail) based on the condition

display show child rows (extra detail) based on the condition

mehtimehti Posts: 35Questions: 13Answers: 0
edited June 2015 in Free community support

Hi,

Is it possible to display show child rows (extra detail) only for rows that have a specific value returned from the database in JSON.

I would like orange button to only show on rows that have specific column set to true
[retracted]

here is a snippet from my code:

{
                "width": "4%",
                "class": 'result-alignment',
                "orderable": false,
                "data": null,
                defaultContent: lang == 'az' ? '<a id="details" class="btn btn-info btn-xs">Daha ətraflı</a>' : '<a id="details" class="btn btn-info btn-xs">Более подробно</a>' 
            }

is it possible to add if statement that would check a data that was returned from database in the JSON?

I hope I am making myself clear if not, please ask me follow up questions.

Any help would be greatly appreciated.

Many thanks,
Mehti

Answers

This discussion has been closed.