在配置DataTables (大写D)和yadcf时,我尝试了我能想到的所有选项,但似乎无法让select下拉列表以不区分大小写的顺序列出。
设置:
var dTable=$('#bTable').DataTable({
"traditional": false,
"pageLength": 1000,
"jQueryUI": true,
"stateSave": true,
"stateDuration": 60 * 60 * 24,
"processing": true,
"stateLoadParams": function (settings, data) {
lastSearch=data.search.search;
},
"ordering": true,
"processing": true,
"paging": false,
"info": false,
"autoWidth": false,
})
yadcf.init(dTable,[
{column_number : 3, column_data_type: "text", filter_match_mode: "exact", sort_as: "alphaNum", filter_container_id: "hs_clu", filter_reset_button_text: false, style_class: "select-style", filter_default_label: "All"},
],
{ cumulative_filtering: true }
);当我单击列标题时,列数据被正确排序为:
nbmps01
nbmps02
nbmps800
Network-1
Network-2
Network-3
NTPROV
NTSYM
NTWKTRANS
NVAM-CXMT我的下拉选择列表的顺序是这样的,看起来不太正确:
NTPROV
NTSYM
NTWKTRANS
NVAM-CXMT
Network-1
Network-2
Network-3
nbmps01
nbmps02
nbmps800在摆弄了两天之后,我已经对此束手无策了。有没有人有什么想法并愿意分享。
任何帮助都是非常感谢的。
发布于 2016-10-19 01:11:19
https://stackoverflow.com/questions/40073816
复制相似问题