slickgrid

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

柔情痞子 提交于 2019-12-12 08:59:40
问题 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

Adding CSS to each cell for a column in Slick grid based on cell value

亡梦爱人 提交于 2019-12-12 01:34:49
问题 Based on cell value, I want to apply a CSS class to that cell in slick grid. I am using following code on the column { id: 'deptType', name: 'Department Type', field: 'dept_type', sortable: true, formatter: function ( row, cell, value, columnDef, dataContext ) { if(value === 'red'){ return '<div style="width:100%; padding:0; margin:0" class ="red">' + value + '</div>'; } return '<div style="width:100%; padding:0; margin:0" class ="green">' + value + '</div>'; } } Though this code is working.

In SlickGrid, how do I collapse grouping via javascript [closed]

点点圈 提交于 2019-12-12 01:09:42
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I want to apply grouping in SlickGrid. I want collapse them via javascript. This is my script http://pastebin.com/MbXgQ22Y (Dead link)

Slickgrid filter on formatted cell content

南笙酒味 提交于 2019-12-11 20:18:20
问题 For a new project we are using SlickGrid which is a very neat tool for displaying grid data. We are trying to implement a search box above the grid which filter the content of the grid. We're using a DataView with the grid and we can use the functions 'setFilter' and 'setFilterArgs' to implement the filter on the DataView. We also use custom formatters to format the content of the cells for some fields. For example the country is a country code in our data object (for example 'NL') but we use

Slickgrids with dynamic json data

时间秒杀一切 提交于 2019-12-11 17:27:30
问题 I ve data in the JSON format given below,need to populate the slick grid columns with the data from cols and rows from values.. Could u please help me with the loops required to do so .... var response = { "cols" : ["name", "Precentage", "Year", "Amount"], "rows": [{ "flag": true, "values": [" name1", "Precentage1", "year1", "Amount1"] } 回答1: There may be a better way to do this, but you could just loop through and build the data array by hand, something like this: var colName; var data = [];

Why SlickGrid column picker hangs in Rails 3 application?

最后都变了- 提交于 2019-12-11 16:12:44
问题 I'm trying to integrate SlickGrid in my Rails 3 application. I use the latest Firefox on Windows XP. Everything was fine until I added the column picker according to this example. Now, when I right click one of the header cells, I do see the column picker. But, when I click one of the check boxes, Firefox hangs. Any ideas what could be the problem, or how to debug this ? UPDATE I noticed that if I remove the width parameter from all columns, everything works fine! 回答1: If you plug SlickGrid

How do I adjust header row height in SlickGrid?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 15:28:44
问题 I'm trying to create a web based app in which the user can edit some information displayed in a grid. I have followed Tom Dykstra's excellent tutorial on MVC with EF6. That presents rows of data, (but not in an editable grid), each row has an 'Edit' button at the end that takes the user away to a separate page/form with edit controls for that row item. My customer wants a grid instead because they like Excel. I settled on SlickGrid to add the grid component so the data could be edited in

Slickgrid - Wordwrap column headers in IE7

梦想的初衷 提交于 2019-12-11 14:36:19
问题 is there a way to word-wrap Slickgrid column headers in IE7? I have about 20+ columns in the grid - and almost all columns have 2 or more words. Thanks for the help! 回答1: I solved this by editing 2 css tags: In slick-default-theme.css : .slick-header-columns { white-space: pre !important; height: 45px; } The height here is adjustable to your needs. This was good to display 3 lines. In slick.grid.css , change the height settings on the below tag to 100% : .slick-header-column.ui-state-default

Get Filtered data from Dataview in Slickgrid

久未见 提交于 2019-12-11 13:46:19
问题 I am using dataView property of slick grid to set data in slick grid. I applied header row filter. I want fetch filtered data on external button click. I am able to get all data by using dataview.getItems() , but when I filter data on header row and use same property dataview.getItems() it return all rows not the filter row data. function bindSlickGrid(myOBJ) { var options = { enableCellNavigation: true, enableColumnReorder: true, multiColumnSort: true, showHeaderRow: true, headerRowHeight: