我正在尝试从他们的小提琴示例中引用 infragistics ignite ui grid 上的过滤器方法。似乎在他们的小提琴上表现正常,但在我的 angularjs 应用程序上表现不佳。你可以在这里找到小提琴 - http://jsfiddle.net/40xgtcry/
在我的 angular js 应用程序中,我正在使用一些虚拟数据在 angular 指令中初始化网格,然后我通过调用 igGridFiltering 方法进行跟踪。
define(['directives/directives', 'northwind'],
function(directives) {
directives.directive('gridView', function () {
return {
restrict: 'EA',
scope: true,
link: function (scope) {
scope.$on("InventoryDataReady", function (){
// $( '#' + scope.gridSettings.targetId ).igGrid(scope.gridSettings);
$('#' + scope.gridSettings.targetId).igGrid({
autoGenerateColumns: false,
columns: [
{ headerText: "Employee ID", key: "EmployeeID", dataType: "number" },
{ headerText: "First Name", key: "FirstName", dataType: "string" },
{ headerText: "Last Name", key: "LastName", dataType: "string" },
{ …
Run Code Online (Sandbox Code Playgroud)