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

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -