av21

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • av21
    Participant

    I have fix to this problem after modification of some part of the jquery.jqgrid.js file.

    i am trying to post the code here somehow getting error. is there way i can attach js file here?

    av21
    Participant

    hey tony thanks for reply. but does it means we can not do reverse multisort with current version? if so is there any workaround for now? 

    in reply to: Cant sortGrid With Multiple Columns When multiSort=true #95976
    av21
    Participant

    Hi Tony, Even i am facing same problem just like steve. jqgrid always gives precedence to left most column for multisort.i was looking in detail at jquery.jqgrid.js for multi sort and what i felt that it always look at in colmodel sequence to append sort name . line 2239

    ts.p.sortorder = “”;
                $.each(cm, function(i){
                    if(this.lso) {
                        if(i>0 && fs) {
                            sort += “, “;
                        }
                        splas = this.lso.split(“-“);
                        sort += cm.index || cm.name;
                        sort += ” “+splas[splas.length-1];
                        fs = true;
                        ts.p.sortorder = splas[splas.length-1];
                    }
                });
                ls = sort.lastIndexOf(ts.p.sortorder);
                sort = sort.substring(0, ls);
                ts.p.sortname = sort;

    ts.p.sortname = sort; – this is always will be Left columm asc/desc, Right column asc/desc

    No matter if you have sort order with Field2(right col), Field1(left col).

     

    I also tried to change ts.p.sortname to proper sequence based on header click, though data is not sorting the way we click header. it always sorts left column and then right column.

    Am i missing something here? trying to fix that issue but no luck. do you have any updates?

Viewing 3 replies - 1 through 3 (of 3 total)

Stay connected with us in your favorite flavor!