Scroll settings not maintaining after first time loading in jquery datatable
Scroll settings not maintaining after first time loading in jquery datatable
Hi.. I am using jquery datatable inside a bootsrap modalpopup. While clicking an icon in a row in Grid, the modalpopup will be opened and the jquery datatable will be displaying inside the popup with the setting which i applied. But when i click on the another icon(which is in another row in Grid), the jquery datatable in the modalpopup applies all settings which i specified, except scroll settings. The 'div' element which is used to create scroller is not rendering after first time. Please check the code below. Can you please let me how to fix this issue? Check http://stackoverflow.com/questions/24205215/scroll-settings-not-maintaining-after-first-time-loading-in-jquery-datatable stackoverflow link for more info.
$(function () {
$('#editstorelist').dataTable({
"bDestroy":true,
"sScrollY": "15vh",
"bPaginate": false,
"bScrollCollapse": true,
"bAutoWidth": false,
"bSort": false,
"bFilter": false,
'bLengthChange': false,
"iDisplayLength": 4,
"aaSorting": [],
"aoColumns": [
{ sWidth: '15%' },
{ sWidth: '9%' },
{ sWidth: '19%' },
{ sWidth: '6%' }
],
});
});