slickgrid

Slickgrid, column with a drop down select list?

*爱你&永不变心* 提交于 2019-11-27 19:44:29
Hi I was wondering if anyone knows if it's possible to define a column in slickgrid as being a drop down select list. If not does anyone with some experience with slickgrid know how I should go about adding this option? Thanks I assume you mean a custom cell editor. Here's a sample select-based boolean cell editor from slick.editors.js. You could easily modify it to work with an arbitrary set of possible values. function YesNoSelectCellEditor($container, columnDef, value, dataContext) { var $select; var defaultValue = value; var scope = this; this.init = function() { $select = $("<SELECT

SlickGrid Vs JQGrid [closed]

早过忘川 提交于 2019-11-27 19:38:51
I am trying to decide between slickgrid and jqgrid. I think both of them are feature-rich. Jqgrid has great documentation, so its easy to get up & running. I am trying to understand, how different they are, in terms of implementation details since I heard slick grid is lot faster. I was just wondering if anyone did some benchmarking / know the internals of each grid to provide some useful inputs. Edit1: @oleg - Thanks for your response. Sorry, I was afraid that I might not have provided enough details. Although I do not have all the use-cases, but I will be using both the local data when data

Saving changes in SlickGrid

筅森魡賤 提交于 2019-11-27 18:24:44
HI, I'm looking at SlickGrid and I can see example on how to edit the cell, however do I save these changes. I have yet to find an example that tells me how to do this. Jim OHalloran The trick to saving the SlickGrid is to realise that the grid will update the array of data that you supplied when creating the grid as the cells are edited. The way I then save that is to include a form with a submit button and a hidden field below the grid. I trap the submit event and use the JSON plugin to serialise the array and place it in the hidden field. On the server side you'll receive a JSON string

Is variable rowheight a possibility in SlickGrid?

旧巷老猫 提交于 2019-11-27 12:42:59
I would like to provide variable row height depending upon the content size. is it possible in Slickgrid? Can you point me towards any examples? This is possible but it's not trivial and you will likely take a performance penalty. The way SlickGrid works, it needs to be able to answer the following two questions rapidly: For a given row X, what is the top offset for that row? For a given offset Y, what row is at that offset? When you use a static row height, answering these questions is trivial; however, with dynamic row height, you'll need to maintain a couple of extra data structures. Here's

Slickgrid, column with a drop down select list?

可紊 提交于 2019-11-27 04:23:59
问题 Hi I was wondering if anyone knows if it's possible to define a column in slickgrid as being a drop down select list. If not does anyone with some experience with slickgrid know how I should go about adding this option? Thanks 回答1: I assume you mean a custom cell editor. Here's a sample select-based boolean cell editor from slick.editors.js. You could easily modify it to work with an arbitrary set of possible values. function YesNoSelectCellEditor($container, columnDef, value, dataContext) {

SlickGrid Vs JQGrid [closed]

雨燕双飞 提交于 2019-11-27 04:23:05
问题 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 7 years ago . I am trying to decide between slickgrid and jqgrid. I think both of them are feature-rich. Jqgrid has great documentation, so its easy

Can SlickGrid's row height be dynamically altered?

无人久伴 提交于 2019-11-27 03:24:58
问题 We are implementing a user preference to (instantly) show "more" or "less" data on the grid. "More" should increase the row-height (with every row having the same increased height). When the user toggles, we update our DataView, and call setOptions on the grid with an updated rowHeight value. We then call invalidate() and render(). But row height isn't being updated. :( Could someone advise a solution? Should we alter the height directly via CSS? If so, any tips on doing this? 回答1: Indeed it

How do I autosize the column in SlickGrid?

廉价感情. 提交于 2019-11-27 00:26:34
问题 I want slickgrid to autosize the columns based on the widest content or header text - whichever is wider. In simpler terms, I want it to simulate the default behavior of regular HTML tables when it comes to column sizing. How can I do it in slickgrid? 回答1: When constructing your options, you can use forceFitColumns: true var options = { enableCellNavigation: true, forceFitColumns: true }; This will make the columns fill the entire width of your grid div. 回答2: The OP is looking for columns to

Saving changes in SlickGrid

余生长醉 提交于 2019-11-26 22:40:29
问题 HI, I'm looking at SlickGrid and I can see example on how to edit the cell, however do I save these changes. I have yet to find an example that tells me how to do this. 回答1: The trick to saving the SlickGrid is to realise that the grid will update the array of data that you supplied when creating the grid as the cells are edited. The way I then save that is to include a form with a submit button and a hidden field below the grid. I trap the submit event and use the JSON plugin to serialise

Is variable rowheight a possibility in SlickGrid?

元气小坏坏 提交于 2019-11-26 18:13:09
问题 I would like to provide variable row height depending upon the content size. is it possible in Slickgrid? Can you point me towards any examples? 回答1: This is possible but it's not trivial and you will likely take a performance penalty. The way SlickGrid works, it needs to be able to answer the following two questions rapidly: For a given row X, what is the top offset for that row? For a given offset Y, what row is at that offset? When you use a static row height, answering these questions is