摘要: Grid OptionsPage HistoryAs included in the examples or described in stable releases.Booleans:autoEditCell will not automatically go into edit mode when selected.autoHeighteditableenableAddRowIf true, a blank row will be displayed at the bottom - typing values in that row will add a new one.enableAsy 阅读全文
posted @ 2012-05-09 23:59 水之原 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: SlickGrid exposes the following events:onScrollonSortonHeaderContextMenuonHeaderClickonMouseEnteronMouseLeaveonClickonDblClickonContextMenuonKeyDownonAddNewRowonValidationErroronViewportChangedonColumnsReorderedonColumnsResizedonCellChangeonBeforeEditCellonBeforeCellEditorDestroyonBeforeDestroyonAct 阅读全文
posted @ 2012-05-09 23:57 水之原 阅读(718) 评论(0) 推荐(0) 编辑
摘要: Model API:Instead of passing SlickGrid an array of row objects, you can pass an object that holds (and updates!) all your rows. This object, which SlickGrid calls aModel, only needs to respond to a simple API:model.getItem(i) // Returns the ith rowmodel.getLength() // Returns the number of itemsRow 阅读全文
posted @ 2012-05-09 23:54 水之原 阅读(3286) 评论(0) 推荐(0) 编辑
摘要: Although the source of thefirst exampleis self-explanatory, it's worth to point out the basics of SlickGrid. The following line:var slickgrid = new Slick.Grid("#node", rows, columns, options);initializes -but doesn't display- SlickGrid, asigning its interface to theslickgridvar. No 阅读全文
posted @ 2012-05-09 23:46 水之原 阅读(2279) 评论(1) 推荐(1) 编辑