1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    4
    Vote Rating
    0
    Karl_ade is on a distinguished road

      0  

    Default EditorGrid with a BasePagingLoader : Edit the wrong row

    EditorGrid with a BasePagingLoader : Edit the wrong row


    i have an EditorGrid filled with a BasePagingLoader like this :
    Code:
        loader = new BasePagingLoader<PagingLoadResult<KeywordModel>>(new RpcProxy<PagingLoadResult<KeywordModel>>() {
    
        @Override
        protected void load(Object aLoadConfig, final AsyncCallback<PagingLoadResult<Model>> callback)
       {                
             config.loadConfig = (BasePagingLoadConfig) aLoadConfig;
             ConfigurationServiceAsync service = ConfigurationService.Util.getInstance();
                    service.getData(config.loadConfig,  new AsyncCallback<KeywordData>() {
                        
             @Override
              public void onSuccess(Data result)
              {
                   BasePagingLoadResult<Model> loadResult = new BasePagingLoadResult<Model>                 (keywordsList, config.loadConfig.getOffset(),  result.getData());
                            callback.onSuccess(loadResult);
    The problem is that when i try to edit a row i get the value of another row because the rowIndex is not the one of the store.
    I've tried to override the onDoubleClick(..) method so that index of the grid used by e.getRowIndex() be equals to the store index of my EditorGrid

    Code:
       editGrid =  new EditorGrid<DataModel>(store, columnModel)
            {
                @Override
                  protected void onDoubleClick(GridEvent<DataModel> e) {
                            int rowIndex = e.getRowIndex();
                            store.removeAll();
                            List<DataModel> reindexList = new ArrayList<DataModel>();
                            // fill the reindexList
                            store.add(reindexList);
                   }
                    if (editSupport.onDoubleClick(e)) {
                      return;
                    }
                    super.onDoubleClick(e);
                  };
            };
    but i got nothing..

    Any helps would be welcomed.
    Thanks

  2. #2
    Sencha User
    Join Date
    Oct 2010
    Posts
    4
    Vote Rating
    0
    Karl_ade is on a distinguished road

      0  

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi