728x90
반응형

- clear

$grid.jqGrid('clearGridData');


- reload

$grid.trigger('reloadGrid');


- get id

var ids    = $grid.jqGrid('getDataIDs');

var rowIds = $grid.getDataIDs();


- get data []

var rowDatas = $grid.jqGird('getRowData')

var rowDatas = $grid.getRowData();


- get data {}

var obj = $grid.jqGird('getRowData', rowid)

var obj = $gird.getRowData(rowid);


- add

$grid.jqGrid('addRowData', row.id, data);

$grid.addRowData(rowid, data, position, srcrowid)

$grid.addRowData(rowid, data)


- update

$grid.jqGrid('setRowData', rowid, data, {cssProp});

$grid.setRowData(rowId, data, {cssProp})


- delete

$grid.jqGird('delRowData', rowid)

$grid.delRowData(rowid)


- getGridParam

var selRowId = $Grid.getGridParam('selrow');

var selRowIds = $Grid.getGridParam('selarrrow');


var selRowId = $Grid.jqGrid('getGridParam','selrow');

var selRowIds = $Grid.jqGrid('getGridParam','selarrrow');


var postData = $Grid.jqGrid('getGridParam','postData');


- setGridParam

$Grid.setGridParam({'postData' : postData}).trigger('reloadGrid');

$Grid.jqGrid('setGridParam', {'postData' : postData}).trigger('reloadGrid');


- setSelection(rowid, onSelectRowEvent)

$Grid.setSelection('001', false);

$Grid.jqGrid('setSelection', '001', false);


- resetSelection()

$Grid.resetSelection();

$Grid.jqGrid('resetSelection');

 

728x90
반응형
블로그 이미지

nineDeveloper

안녕하세요 현직 개발자 입니다 ~ 빠르게 변화하는 세상에 뒤쳐지지 않도록 우리모두 열심히 공부합시다 ~! 개발공부는 넘나 재미있는 것~!

,