问题标签 [angular-slickgrid]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
136 浏览

angular - 添加和删​​除列内联编辑不起作用

我有一个要求,内联编辑器,带有添加和删除列的复选框行选择。在 Angular Slick grid Master 源代码中,我正在使用示例 3 页面尝试上述功能。我在网格选项中添加了一个复选框选项,如下所述。

并在示例 3 中添加此网格选项。

除了内联编辑不起作用外,一切正常。

0 投票
1 回答
201 浏览

angular - 在 angular slickgrid 中,从另一个页面路由或更改网格数据时 enablecheckboxselector:true 不起作用

我有一个下拉列表,在更改下拉列表中的值时,我正在使用新数据加载网格并调用 setGridOptions() 再次设置所有网格选项。我有 enablecheckboxselector:true 但复选框也没有出现。令人惊讶的是,只要我单击任何列对其进行排序,就会显示复选框。任何人都可以请提出一个解决方案。谢谢!

0 投票
1 回答
77 浏览

aurelia - 如何组合 aurelia slickgrid 中两列的数据

我有一个带有开始日期和结束日期的 aurelia slickgrid 表,这很好。后端 api 响应采用 odata 格式。现在我想创建一个名为状态的新列,状态计算为:

基本上,上面的那些函数,比如 dosLicenseActivate 是一堆 Moment.js 函数,做一些日期计算。我的专栏看起来像:

这是它的样子: 在此处输入图像描述

这就是我想做的,基本上是创建一个新的状态列,它使用前两列的值(开始和结束日期) 在此处输入图像描述

0 投票
0 回答
90 浏览

angular8 - Angular Slick Grid Hierarchy 视图:需要从父行中删除图标

在 Angular Slick Grid Hierarchy 视图中,我实现了添加编辑图标列。现在我需要这些图标只对子行而不是父行可见。我的代码:

0 投票
0 回答
33 浏览

angular-slickgrid - Angular-Slickgrid 是否支持嵌套上下文菜单

我需要在 Angular-Slickgrid 中显示嵌套的上下文菜单,但我没有找到任何示例。它真的支持嵌套上下文菜单吗?

见下图

在此处输入图像描述

谢谢

0 投票
0 回答
10 浏览

angular-slickgrid - 我最近从 angular 2.21 更改为 2.26(使用了 Angular 8),突然很少有东西停止工作

我最近从 angular 2.21 更改为 2.26(使用了 Angular 8),突然之间很少有东西停止工作,比如从列过滤器选项开始,以列过滤器选项结束,日期列过滤器选项无法正常工作。有什么解决办法吗?

0 投票
1 回答
50 浏览

angular-slickgrid - Angular-Slickgrid Select 或 Multiselect 下拉菜单在第一次单击时闪烁(自动关闭)

以下是我正在使用的代码

1.我在 angular slickgrid 表中添加了一个新行,代码如下 const newItem = { id: this.dataset.length + this.index, roleName: '' };

  1. 以下是列定义

this.columnDefinitions = [ { id: 'roleName', name: 'Role *', field: 'roleName', sortable: true, type: FieldType.string, filterable: true, width: 80, editor: { model: Editors. singleSelect, enableRenderHtml: true, collection: ['1','2', '3'], placeholder: '选择一个选项', collectionSortBy: { property: 'label' }, } } ]

3.GridOptions有:

this.gridOptions = { enableAutoResize: true,
enableCellNavigation: true, editable: true, autoEdit: true, enableColumnPicker: true, };

但是可以看到当我在表中添加新行并且如果我快速单击选择元素然后它会在几秒钟内打开一个下拉列表然后它会自动关闭。

0 投票
0 回答
24 浏览

angular-slickgrid - 如果我预先选择了所有集合值,Angular slickgrid Multiselect 应该显示“全部”

以下是多选下拉列配置列配置示例代码:

选择所有下拉元素而不是所有单个元素后,如何在 UI 上显示全部。

0 投票
1 回答
147 浏览

slickgrid - 更改列定义时的AngularSlickGrid问题

我正在使用惊人的 angularslickgrid 开发一个应用程序。到目前为止,我没有任何问题,购买我发现它有一个奇怪的行为。在ngOnInit 中,我编写了以下代码:

到目前为止,一切正常,网格正确加载了包括 RowSelection 列的数据。

问题是当我尝试更改 columndefinition 并执行 reset() 时,如下所示:

新列已正确加载,但我丢失了 rowSelection 列.. :(

我尝试在defineGridHeaders()resetGrid()中间包含defineGridOptions()函数,但结果是一样的。

this.defineGridHeaders()我只是执行以下操作:

有人可以帮我吗?

非常感谢!

0 投票
0 回答
79 浏览

angular-slickgrid - How to preselect the values in multiselect dropdown if we get 'ALL' text

Let me tell you my requirement and the approach we followed

We have a table with multiple columns(in our table on selection of one cell value we change the collection of next column in cell click event).

In order to preselect the values in multiselect dropdown we get 'ALL' key instead of list ['a','b','c'], so on ui 'ALL'(text in string format) gets displayed but when we click on cell how to make all elements as selected in dropdown.

On cell click(which applied on table) we are also changing the collection of columns which in which also will have to manage the 'ALL' and elements selection. In short our columns collections keeps changing on click event of cell.

If you have any other solution for this instead of the formatter and logic we have used. and also in formatter function if you will print 'dataContext' or row on table load event it shows same values only(eg row 3 will be prinetd insted of '1','2','3'). Is there any way to get all the corressponding different row count or dataContext in formatter function. Also 'this' is not available in customFormatter function. How can I get 'this' reference so that I can add some more custom logic in customFormatter function