Using objects with data tables question
Using objects with data tables question
theg33k
Posts: 6Questions: 0Answers: 0
This *might* be a bug but I'm leaning on me just not understanding how it works. I'm using an ajax source where the source is an array of JSON objects (new to 1.8) as recommended by you in a previous forum question. I tried all sorts of nonsense but I can't seem to get a vertical scrollbar to show up when using JSON for my source.
Here's my table definition
[code]
$('#merchantTableContainer').dataTable( {
'bPaginate': false,
'sScrollY': '150px',
'bFilter': false,
'sPaginationType': 'full_numbers',
'bInfo': false,
'bLengthChange': false,
'bSort': false,
'bAutoWidth': true,
'sAjaxSource': '/pos/rest/merchants/dataTable',
'bProcessing': true,
'bServerSide': true,
'aoColumns' : [{'mDataProp': 'id',
'bSearchable': false,
'bVisible': false},
{'mDataProp': 'displayName'},
{'mDataProp': 'clientId'}
]
} );
jQuery.fn.dataTableExt.oPagination.iFullNumbersShowPages = 0;
[/code]
Any suggestion on getting a scroll bar?
Thanks again for an awesome plugin.
Cheers!
G33k
Here's my table definition
[code]
$('#merchantTableContainer').dataTable( {
'bPaginate': false,
'sScrollY': '150px',
'bFilter': false,
'sPaginationType': 'full_numbers',
'bInfo': false,
'bLengthChange': false,
'bSort': false,
'bAutoWidth': true,
'sAjaxSource': '/pos/rest/merchants/dataTable',
'bProcessing': true,
'bServerSide': true,
'aoColumns' : [{'mDataProp': 'id',
'bSearchable': false,
'bVisible': false},
{'mDataProp': 'displayName'},
{'mDataProp': 'clientId'}
]
} );
jQuery.fn.dataTableExt.oPagination.iFullNumbersShowPages = 0;
[/code]
Any suggestion on getting a scroll bar?
Thanks again for an awesome plugin.
Cheers!
G33k
This discussion has been closed.
Replies
Allan
Allan