Sort based on iDataSort Safari bug ?
Sort based on iDataSort Safari bug ?
Islander
Posts: 4Questions: 0Answers: 0
using 1.9.3.dev and i have a hidden 5th column ( unixtime ) and the 3rd column is sorted based on the 5th column data using iDataSort
the sorting works fine with latest versions firefox , chrome and chromium browsers but it dosent work in safari (ipad). when i click on the sort arrow nothing happens nothing is redrawn or anything and no errors in debug window in safari browser also.
is this related to datatables bug or from safari ?
i even tried adding these two plugins but dosent work
[code]
/* When DataTables removes columns from the display (bVisible or fnSetColumnVis) it removes these elements from the DOM,
effecting the index value for the column positions. This function converts the data column index (i.e. all columns regardless of visibility)
into a visible column index.*/
$.fn.dataTableExt.oApi.fnColumnIndexToVisible = function ( oSettings, iMatch )
{
return oSettings.oApi._fnColumnIndexToVisible( oSettings, iMatch );
};
/* When DataTables removes columns from the display (bVisible or fnSetColumnVis) it removes these elements from the DOM,
effecting the index value for the column positions. This function converts the visible column index into a data column index
(i.e. all columns regardless of visibility). */
$.fn.dataTableExt.oApi.fnVisibleToColumnIndex = function ( oSettings, iMatch )
{
return oSettings.oApi._fnVisibleToColumnIndex( oSettings, iMatch );
};
[/code]
here is my datatables aoColumns settings
[code]
"aaSorting": [[ 3, "desc" ]],
"aoColumns": [
{ "sType": "html", "sWidth": "30%" },
{ "sType": "numeric", "bSearchable": false },
{ "sSortDataType": "dom-text-all", "sType": "numeric", "bSearchable": false },
{ "bSearchable": false, "iDataSort": 5 },
{ "bSortable": false, "bSearchable": false },
{ "sType": "numeric", "bSearchable": false, "bVisible": false }
]
[/code]
thanks and waiting for the reply or if someone else is experiencing the same problem let me know how u guys fixed it
cheers.
the sorting works fine with latest versions firefox , chrome and chromium browsers but it dosent work in safari (ipad). when i click on the sort arrow nothing happens nothing is redrawn or anything and no errors in debug window in safari browser also.
is this related to datatables bug or from safari ?
i even tried adding these two plugins but dosent work
[code]
/* When DataTables removes columns from the display (bVisible or fnSetColumnVis) it removes these elements from the DOM,
effecting the index value for the column positions. This function converts the data column index (i.e. all columns regardless of visibility)
into a visible column index.*/
$.fn.dataTableExt.oApi.fnColumnIndexToVisible = function ( oSettings, iMatch )
{
return oSettings.oApi._fnColumnIndexToVisible( oSettings, iMatch );
};
/* When DataTables removes columns from the display (bVisible or fnSetColumnVis) it removes these elements from the DOM,
effecting the index value for the column positions. This function converts the visible column index into a data column index
(i.e. all columns regardless of visibility). */
$.fn.dataTableExt.oApi.fnVisibleToColumnIndex = function ( oSettings, iMatch )
{
return oSettings.oApi._fnVisibleToColumnIndex( oSettings, iMatch );
};
[/code]
here is my datatables aoColumns settings
[code]
"aaSorting": [[ 3, "desc" ]],
"aoColumns": [
{ "sType": "html", "sWidth": "30%" },
{ "sType": "numeric", "bSearchable": false },
{ "sSortDataType": "dom-text-all", "sType": "numeric", "bSearchable": false },
{ "bSearchable": false, "iDataSort": 5 },
{ "bSortable": false, "bSearchable": false },
{ "sType": "numeric", "bSearchable": false, "bVisible": false }
]
[/code]
thanks and waiting for the reply or if someone else is experiencing the same problem let me know how u guys fixed it
cheers.
This discussion has been closed.
Replies
'numeric' type should be automatically detected - if it isn't then you have some non-numeric data in the column.
Allan