jqGrid Sorting Arrows -


for sorting, show 1 arrow aligned column header. noticed viewsortcols allows put arrows horizontally (aligned nicely), wondering if there tricks use single arrow. if sorted 1 way points up, other way points down.

i came across this grid doing it...but having little trouble understanding code. not need use custom arrows.

the code example reference uses old version of jqgrid (version 3.4.3). can have behavior of sorting.

one day misunderstand 1 question , have answered on question. find answer here. uses the demo create results

enter image description here

and

enter image description here

one more answer interesting you.

updated: if want change position of sort icon can adding css follow

.ui-jqgrid .ui-jqgrid-labels .s-ico .ui-grid-ico-sort {     margin-top: 0px; } 

it change icon position to

enter image description here

and

enter image description here

see the modified demo.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -