EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: catpaw on February 24, 2014, 02:28:54 PM



Title: remoteSort both true and false
Post by: catpaw on February 24, 2014, 02:28:54 PM
Hello

I need to manage my remote sort datagrid as true
But for a column the sort has to be client side.
 
Only for this column I have:

<th field="average" width="50" sortable="true" data-options="
                        align: 'center',
                        sorter: function (a, b) {
                                      if ((a!=null) && (b!=null)) {
                                              return ((parseFloat (a)> parseFloat (b)) 1:? -1);
                                      } else {
                                              return -1;
                                      }
                                  }"> Average </ th>

it is possible?


Title: Re: remoteSort both true and false
Post by: stworthy on February 25, 2014, 01:13:53 AM
You have to use either client sorting or server sorting and can't use them together.