Asking DT of what type the column content is
Asking DT of what type the column content is
jd_dot_DataTables
Posts: 5Questions: 0Answers: 0
hey :) I want to know if there is a possibility of me asking DT of what type the column content is.
It seems that sorting automatically determines the column type ans sorts accordingly.
I would like to ask DT domething like this:
[code]$('#table').typeOfColumn(5);[/code] or
[code]$('#table').typeOfColumn(5,'numeric')[/code] -> return T or F
And when this would work could I exclude "empty" cells from the test. "empty" stands for empty string, var string = ''; , meaning that I don't hava data for the property that the column is presenting.
Scenarios:
[quote]1
2
"empty"
3
Should be numeric.
[/quote]
[quote]1
2
"empty"
A car
London
4
5
Should be string or text.
[/quote]
Thank you for your time. :)
It seems that sorting automatically determines the column type ans sorts accordingly.
I would like to ask DT domething like this:
[code]$('#table').typeOfColumn(5);[/code] or
[code]$('#table').typeOfColumn(5,'numeric')[/code] -> return T or F
And when this would work could I exclude "empty" cells from the test. "empty" stands for empty string, var string = ''; , meaning that I don't hava data for the property that the column is presenting.
Scenarios:
[quote]1
2
"empty"
3
Should be numeric.
[/quote]
[quote]1
2
"empty"
A car
London
4
5
Should be string or text.
[/quote]
Thank you for your time. :)
This discussion has been closed.
Replies
Allan