1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    36
    Answers
    3
    Vote Rating
    0
    juliandresog is on a distinguished road

      0  

    Default Answered: Remote sort grid

    Answered: Remote sort grid


    In a RPC metod I have this:

    public PagingLoadResult<Entidad> getUsuariosPaginado(final FilterPagingLoadConfig config) {
    String sortField=null;
    if (config.getSortInfo().size() > 0) {
    SortInfo sort = config.getSortInfo().get(0);
    if (sort.getSortField() != null) {
    //sortField = sort.getSortDir().ASC.Field();
    }
    }
    }

    How I can know if the user chose to sort ascending or descending.

  2. PHP Code:
    String sortField=null
            
    String sortDir null;
            if (
    config.getSortInfo().size() > 0) {
                
    SortInfo sort config.getSortInfo().get(0);
                if (
    sort.getSortField() != null) {
                    
    sortField sort.getSortField();
                    
    sortDir sort.getSortDir().name();
                }
            } 
    sortDir = ASC or DESC

  3. #2
    Sencha User
    Join Date
    Mar 2012
    Posts
    36
    Answers
    3
    Vote Rating
    0
    juliandresog is on a distinguished road

      0  

    Default


    PHP Code:
    String sortField=null
            
    String sortDir null;
            if (
    config.getSortInfo().size() > 0) {
                
    SortInfo sort config.getSortInfo().get(0);
                if (
    sort.getSortField() != null) {
                    
    sortField sort.getSortField();
                    
    sortDir sort.getSortDir().name();
                }
            } 
    sortDir = ASC or DESC

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar