dojo - How to put Serial Number in dojox grid rows -


how can insert row number serial number in each dojo grid rows?? must not change grid filtered or sorted.. idea??

the solution found use 'get' in grid structure

add

function siformatter(index){ return index + 1; } 

and add structure of grid -

{field: "si", name: "#", : siformatter, filterable: false} 

disable sort column using cansort function in grid

donno if there other better solutions..


Comments

Popular posts from this blog

Glib GIOChannel -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -

python - Obscure curses error message when creating a sub window -