slickgrid

SlickGrid - Editable Grid with Controls Visible by default

ε祈祈猫儿з 提交于 2019-12-21 06:08:15
问题 The SlickGrid supports editors for a cell that can be configured to be displayed on click or double click. However I don't see an option where, the editor is VISIBLE by default for all cells without having to click/double click on the cell. Is it possible to support editors in slick grid where the editors are "init" by default for all cells? Is there a known workaround? Thank you. 回答1: No. The grid is designed to have one cell editable at a time. 回答2: I know it's not exactly what you asked

Slickgrid - One-click checkboxes?

∥☆過路亽.° 提交于 2019-12-21 03:38:10
问题 When I create a checkbox column (through use of formatters/editors) in Slickgrid, I've noticed that it takes two clicks to interact with it (one to focus the cell, and one to interact with the checkbox). (Which makes perfect sense) However, I've noticed that I am able to interact with the checkbox selectors plugin (for selecting multiple rows) with one click. Is there any way I can make ALL of my checkboxes behave this way? 回答1: For futher readers I solved this problem by modifing the grid

SlickGrid setting row opacity

微笑、不失礼 提交于 2019-12-21 03:01:08
问题 I am using SlickGrid and am wondering if there is a way to set and keep a rows opacity or css styles in general. For example my rows have a checkbox in them and when the user sets the checkbox to checked then the opacity of the row is set. However when the user then clicks off the row the SlickGrid removes the opacity setting. One option if anyone knows how to do it is to set the opacity of the row after SlickGrid has done its re-render. this would allow me to use the jQuery below across the

Slick Grid wrapped in directive (angular), some options not work (resize and drag&drop columns)

白昼怎懂夜的黑 提交于 2019-12-20 17:19:46
问题 When I've wrapped Slick Grid plugin into directive, some Slick Grid options (resizing and drag & drop columns) do not work. I think those events may conflict with directive. Does anyone have any insight? my html: <div style="width:600px;height:500px;" s-grid></div> my directive: angular.module('slickGrid.directive', []) .directive('sGrid', [function () { return { restrict: 'EA', link : function(scope, element, attrs){ // for clearer present I initialize data right in directive // start init

Calling sort on slickgrid

百般思念 提交于 2019-12-20 10:48:31
问题 In the slickgrid I'm able to set the sort column and it's sort direction using the grid.SetSortColumn(colName,true/false) . This only sets the sorting glyph but does no sorting. Is there a way to call the sort event handler. I've defined the sort handler like grid.onSort.subscribe(function(){}); 回答1: The behavior you are observing is correct. grid.setSortColumn(columnId, isAsc); only updates the glyph on the sort column. In your case, you will initially need to sort the data, and then use

ag-grid vs slick-grid vs angular-grid which is better? [closed]

雨燕双飞 提交于 2019-12-20 08:34:27
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . Recently we thought to change our current grid tool. Currently we're using kendo-ui for grid and all. After searching we came with 3 results. But, still we're not sure which is better and why in future run. While using kendo we missed having control over it. It would be a

Assigning CSS Style to Slickgrid Cells

我们两清 提交于 2019-12-20 03:02:43
问题 Slickgrid is continuosly evolving so some of the answers to similar issues are not applicable (e.g., they mention it was not possible to assign a CSS to a specific cell). Apparently now this is supported and would appreciate if someone could provide an example using the CSS API at https://github.com/mleibman/SlickGrid/wiki/API-Reference: grid.setCellCssStyles("birthday_highlight", { 0: { birthday: "highlight", age: "highlight" }, 9: { birthday: "highlight", age: "highlight" } }) I have a very

How do I add a css class to particular rows in slickGrid?

和自甴很熟 提交于 2019-12-18 12:54:06
问题 I've searched everywhere to find out how to add a class to a particular row in slickgrid. It looks like there used to be a rowCssClasses property but it's gone now. Any help on this would be extremely appreciated. Update : I figured it out using the getItemMetadata...so before you render, you have to do something like this: dataView.getItemMetadata = function (row) { if (this.getItem(row).compareThis > 1) { return { 'cssClasses': 'row-class' }; } }; That will inject that 'row-class' into the

Simple jQuery SlickGrid JSON example or documentation

◇◆丶佛笑我妖孽 提交于 2019-12-18 11:53:38
问题 I'm looking for a simple example on how to use SlickGrid when trying to retrieve the data as JSon via jQuery.Ajax. I was also unable to find any documentation of the SlickGrid plugin and was wondering if I was just looking in the wrong places. Any help to get me started with SlickGrid would be most appreciated. 回答1: An example within an asp.net page. The webservice myData returns a json string that needs to match the grid columns. $(function () { $.ajax({ url: "WS.asmx/myData", global: false,

SlickGrid select editor

末鹿安然 提交于 2019-12-17 19:27:44
问题 I want to make a dynamically populated html select for a select cell. I extract some information from a database which is different for every row item. The problem is that the editor loses the initial data and I don't know how to keep some data for a specific cell. Has someone done this before? function StandardSelectCellEditor($container, columnDef, value, dataContext) { var $input; var $select; var defaultValue = value; var scope = this; this.init = function() { $input = $("<INPUT type