slickgrid

Disabling specific cell edit in Slick grid

两盒软妹~` 提交于 2019-12-05 11:24:57
问题 Is there a way to disable a cell for editing? We can define editor at column level but can we disable that editor for specific rows? 回答1: grid.onBeforeEditCell.subscribe(function(e,args) { if (!isCellEditable(args.row, args.cell, args.item)) { return false; } }); 回答2: You can disable or even change editor/formatter/validator... or other cell properties using getItemMetadata method. There is very nice documentation for this here. Example: $scope.data.data.getItemMetadata = function (row) { var

Slickgrid Filtering without Dataview

穿精又带淫゛_ 提交于 2019-12-05 09:14:42
问题 Is it possible to filter a Slickgrid without using the DataView? In case it isn't possible, how should the data array be structured in order to display correctly? I don't have a working example atm. Thanks Later edit: After doing some more homework, a filterable datagrid is all about getting matching indexes in a nested array... to get a live sorted result-set that gets updated with grid.setData(filterData);grid render; one should do the following function intersect(a, b) // find an

SlickGrid 2.0 can't change row background color in odd indexes

心已入冬 提交于 2019-12-05 08:39:50
I'm trying to change the background color using this code: data.getItemMetadata = function (index) { if (index === 5) { return {cssClasses: "Unverified"}; } } It works perfect as long as the index is even. but with odd indexes it has no effect on the background color (it has effect on the font style). I suspect it has something to do with the zebra effect? (I don't know how to disable that) Thanks. Your Unverified CSS class gets applied, but has no effect because it's specificity is lower than what is defined in slick-default-theme.css : .slick-row.odd { background: #fafafa; } Notice that the

Error: multipleDefine from Dojo & jQuery-UI conflict

眉间皱痕 提交于 2019-12-05 08:00:57
I am trying to create an editable SlickGrid (which uses jquery-ui) and also use Dojo. When my page contains <script src="../../bower_components/dojo/dojo.js"></script> <script src="../../bower_components/SlickGrid/lib/jquery-ui-1.11.3.js"></script> <script src="../../mlads/fillDemo/FillDemo.js"></script> the console shows Error: multipleDefine return mix(new Error(error), {src:"dojoLoader", info:info}); dojo.js (line 106) src: dojoLoader dojo.js (line 1896) info: Object { pid="dijit", mid="dijit/_WidgetsInTemplateMixin", pack={...}, more...} If I comment out the jquery-ui line, the error goes

Slickgrid column width should automatically get resized according to widest row content

守給你的承諾、 提交于 2019-12-05 01:35:52
问题 In Slickgrid is there any way where the column width automatically get resized according to widest row content? In the sample example I can see the value of column as hard coded for the column field http://mleibman.github.com/SlickGrid/examples/example2-formatters.html var columns = [ {id: "title", name: "Title", field: "title", width: 120, cssClass: "cell-title", formatter: formatter}, {id: "duration", name: "Duration", field: "duration"}, {id: "%", name: "% Complete", field:

is there a way to save bokeh data table content

穿精又带淫゛_ 提交于 2019-12-04 21:43:42
问题 I am experimenting with bokeh data table to display data embedded in web page. It works quite nicely. Is there a way to save the table content from the displayed data table? Other bokeh plots have tool bar for various functions including saving, but the DataTable does not seem to come with it. I know very little about javascript or slickgrid, which bokeh data table uses. And wondering if it can be done. Thanks! EDIT - It appears the my original question was not clear enough. Hope following

How can I integrate SlickGrid with Meteor.js reactive collections?

柔情痞子 提交于 2019-12-04 20:07:38
问题 SlickGrid focuses on displaying the data from a table or array, which is great. Meteor focuses on manipulating the data, but uses Minimongo. How can SlickGrid integrate with Minimonogo collections and preserve its fast display and large data handling capabilities? My current way of doing it feels wrong and is somewhat ugly. I have a separate array for SlickGrid and writing some glue code to handle update events: Sorting: Handled by Meteor, triggers a full refresh (re-setting data) add/update

resizing a slickgrid column header causes it to be misaligned with body

偶尔善良 提交于 2019-12-04 19:46:00
I am using SlickGrid 2.2 with Bootstrap 3.1.0 css. When I try to resize the column header, the column header cell is not aligned with the cell in the body. The header is consistently larger than the body whether I am shrinking or stretching it. I am using the code from example 1: html <div id="myGrid" style="width:600px;height:500px;"> javascript var grid; var columns = [{ id: "title", name: "Title", field: "title" }]; var options = { enableCellNavigation: true, enableColumnReorder: false }; $(function () { var data = []; data[0] = { title: "Task ", duration: "5 days", percentComplete: Math

SlickGrid not shifting focus away from grid when tabbing out of last cell that is editable

馋奶兔 提交于 2019-12-04 18:08:13
When a SlickGrid is set up with: enableAddRow: false, enableCellNavigation: true, autoEdit: true and the last column in that SlickGrid is configured with: editor: null, focusable: false, selectable: false When attempting to tab out of the SlickGrid by tabbing out of the second to last column in the last row, I would expect the focus to be moved to the next focusable element outside of the grid, but it does not. See this example , and try to tab out of the grid from the last row. I would expect the focus to shift to the textboxes below the grid, but it does not and instead focus is lost while

Possible to hide a SlickGrid column WITHOUT removing it from the “columns” array?

一个人想着一个人 提交于 2019-12-04 16:29:32
问题 I'd like to hide a column (its an ID column that is unique for each row), but I cannot remove it from the "columns" array because I need that data in the Row when actions are performed on the Row (Selection, Sorting, ect). After being sorted for example, I need to grab the Rows match them up to the previous styles that they had before, and I can do this with the ID column. I need the data in the row, I just don't want it to be displayed. Thanks. 回答1: The answer is NO, but that is not the