Jump to content

TUniDBGridColumn column sort Direction (ASC, DESC, NONE)


Freeman35

Recommended Posts

no, i think he want a column sort with 3 states

for exemple :

first click on column header-> ASC Sort

second Click on column header -> DESC sort

third Click on oclumn header -> NO sort

4th click on column header->ASC SORT .

......

 

Link to comment
Share on other sites

No error in console ?

have you got a column with checkbox for selection ?

if not, try adding, YourGrid.options.dgcheckselect : true;

Your column have sortable : true ?

 

for your question about sender.multiSortLimit=10;' -> you couldn't have more than 10 column sorted

see doc sencha

Link to comment
Share on other sites

Thank you so much for help,

Yes, problem about "dgcheckselect". I'm not use this property so I remove this code "if (me.checkboxModel.views.length > 0) {delta = 1; };"  from your js. So, now my app is work without error. I'll continue work on :)

Best regards.

Link to comment
Share on other sites

try this :

replace

      '        sort: function() {'+#13#10+
...
  '            if (this.el.hasCls(''x-column-header-sort-DESC'')) {'+#13#10+

by

'        sort: function(a) {'+#13#10+
...
'            if (a==null && this.el.hasCls(''x-column-header-sort-DESC'')) {'+#13#10+

 

Link to comment
Share on other sites

×
×
  • Create New...