javascript - jqGrid: fixed row -


is possible set row on fixed position? example, have total row, , want total on top, after sorting etc.

is there plugin this?

we have tried in onloadcomplete redrawing whole table so:

var rowids = $(this).getdataids(); var rowid, columnid; $(this).cleargriddata();  (rowid in rowids) {   (columnid in data.rows[rowid]) {     $(this).addrowdata(rowids[rowid], data.rows[rowid], (data.rows[rowid][columnid].first ? 'first' : null));     break; // first column   } } 

but bad performance, have thousands of rows.

after oleg's comment:

the total row row our dataset. dataset has format:

columns: 'network', 'clicks', 'views'

data = [   {     'network': {value:'google'}, 'clicks': {value:38392882}, 'views':{value:3939922}   },   {     'network': {value:'sanoma'}, 'clicks': {value:177883}, 'views':{value:39293}   },   ...   ,   {     'network': {value:'total'}, 'clicks': {value:993832732223}, 'views':{value:3932293939}, 'first': true   },   ...  ] } 

so set in our datarow row want have on top ('first':true).

by processing, use set in on top of table. more understandable :)

thanks in advance,

eddy

the footer placed in div class "ui-jqgrid-sdiv" , placed typically below div class "ui-jqgrid-bdiv" main grid contain placed. move footer on top of page need move the footer div. additionally should place bottom border in style need. code following:

$('div.ui-jqgrid-sdiv').css({     "border-bottom-style":"solid",     "border-bottom-color":"#a6c9e2",     "border-bottom-width":"2px" }).insertbefore($('div.ui-jqgrid-bdiv')); 

as result receive enter image description here

see demo live here.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -