数据表1.9.3的搜索问题 - prevent数据考虑href的值表 - [英] DataTable 1.9.3 searching issue - prevent Data Table from considering href value -
问题描述
在项目中,我已经创建了一个的dataTable
,一切都只是一个特定的情况下正常工作。
在执行搜索,我的数据表
也与在锚标记搜索的href
中的文本。但我不想考虑这个情况。
希望你明白我的问题。任何帮助将大大AP preciated。
我使用的版本的数据表1.9.3
我的javascript -
$('#的数据网格)。dataTable中(
{
aoColumnDefs:[
{STYPE:HTML,aTargets:[1]},
{bSortable:假,aTargets:[0]},
{bSearchable:假,aTargets:[0]}
]
bPaginate:假的,
bLengthChange:假的,
bFilter:真实,
bInfo:假的,
aaSorting:[[1,'递增']]
});
我发现这个问题终于,这个问题是与数据表的版本我使用。
我用的数据表的最最新的一个版本 - 数据表v1.9.3 并得到了这个问题。
我也与他们最最近的一次检查 - 数据表v1.9.4 ,它也有同样的问题。这两个数据表考虑锚标记的href价值,同时搜索。
最后我去了 数据表1.9.0 版本,现在它工作正常。
感谢所有您的帮助。
In my project I've created a dataTable
, Everything is working fine except one particular case.
While performing searching, my datatable
is also searching the text inside the href
with in the anchor tag. But i don’t want to consider this case.
Hope you understood my issue. Any help will be much appreciated.
I'm using version DataTable 1.9.3
My javascript :-
$('#dataGrid').dataTable(
{
"aoColumnDefs": [
{ "sType": "html", "aTargets": [1] },
{ "bSortable": false, "aTargets": [0] },
{ "bSearchable": false, "aTargets": [0] }
],
"bPaginate": false,
"bLengthChange": false,
"bFilter": true,
"bInfo": false,
"aaSorting": [[1, 'asc']]
});
I found the issue finally, the issue was with the version of data table I applied. I used one of the most latest version of data table - DataTables v1.9.3 and got this issue.
I also checked with the their most latest one - DataTables v1.9.4 and it also have the same issue. Both datatables consider the href value of anchor tag while searching.
Finally i went with the Datatable 1.9.0 version and now it is working as expected.
Thanks all for your help
这篇关于数据表1.9.3的搜索问题 - prevent数据考虑href的值表 - 的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!