过滤网格数据不适用于FF(mozilla)和IE [英] Filter the grid data is not working in FF(mozilla) and IE
本文介绍了过滤网格数据不适用于FF(mozilla)和IE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用kendo ui controls.my功能是根据日期时间和下拉选择过滤网格。这是在Chrome上工作但不在FF和IE中。
I am working with kendo ui controls.my functionality is to filter the grid based on date-time and drop down selection. This is working on chrome but not in FF and IE.
<pre lang="cs">var gridResult = $('#Grid').data("kendoGrid");
var condition = {
logic: "and",
filters: [
{ field: "Category", operator: "equals", value: $("#nw").val() },
{ field: "Device", operator: "equals", value: $("#pro").val() },
{ field: "Orig", operator: "equals", value: $("#work").val() },
{ field: "Term", operator: "equals", value: $("#network").val() }
]
};
if (mindate !== null) {
condition.filters.push({ field: "Time", operator: "ge", value: new Date(mindate) });
}
if (maxdate !== null) {
maxdate = new Date(maxdate);
maxdate.setHours(23, 59, 59, 999);
condition.filters.push({ field: "Time", operator: "lt", value: maxdate });
}
gridResult.dataSource.filter(condition);
return false;
});
$('#fromdatetimepicker').attr('readonly', false);
$('#todatetimepicker').attr('readonly', false);
}
推荐答案
('#Grid')。data(kendoGrid);
var condition = {
logic:and,
filters:[
{field:Category,operator:equals,value:
('#Grid').data("kendoGrid"); var condition = { logic: "and", filters: [ { field: "Category", operator: "equals", value:
(#nw)。val()},
{field:Device,operator:equals,value:
("#nw").val() }, { field: "Device", operator: "equals", value:
(#pro)。val()},
{field:Orig,operator:equals,value:
("#pro").val() }, { field: "Orig", operator: "equals", value:
这篇关于过滤网格数据不适用于FF(mozilla)和IE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文