1. #1
    Ext User
    Join Date
    Aug 2008
    Posts
    25
    Vote Rating
    0
    jagadesh is on a distinguished road

      0  

    Default Issue With Grid

    Issue With Grid


    Hi Guys,

    When iam Working with the editable grid, i was unable to remove the rows from the grid . my scenerio is there will be some rows available in the editable grid .what i need to do is i should remove all the rows when the page loads. i tried

    if(formgrid.getStore().getCount()>0){
    formgrid.getStore().removeAll();
    }

    but it throws a Null Pointer Excception .

    can any one sort me out.

    thank u,
    jagadesh

  2. #2
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    why you need load, and remove.. if you don't load the data.. post your code

  3. #3
    Ext User
    Join Date
    Aug 2008
    Posts
    25
    Vote Rating
    0
    jagadesh is on a distinguished road

      0  

    Default


    Hi ,
    consider that i will click a edit button in my page which opens a grid with rows populated from the data base . now when i go back to the first page and click edit button for second page. then i would go to the same grid .then grid which contains previous data rows should be removed and filled with new data arrived from the database.

    thank u,
    jagadesh

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Please post some complete example that i can just compile and run that is demonstrating the issue.

  5. #5
    Ext User
    Join Date
    Oct 2008
    Posts
    91
    Vote Rating
    0
    Michi_de is on a distinguished road

      0  

    Default


    My approach would be following:

    Use stores, binded to loaders. This loaders should use RPC proxy to get data via RPC.
    ( a good tutorial for this is here: http://christianposta.com/blog/ )

    Lets just look at the RPC Proxies method:

    Code:
    RPCProxy myProxy = new RpcProxy() {
                @Override
                public void load(Object loadConfig, AsyncCallback callback) {   
                       myRPCService.getData((PagingLoadConfig) loadConfig, myFilter, callback);      
                     }
                };
    Simple proxy method. The trick is in the "myFilter" object.

    Just do the following:
    save inside the myFilter object, your values to tell the servlet (the one you ask for data) which data we explicitly need. For example you could send through the filter a string value "abcd" and the servlet looks into the database and gives you back all data matching "abcd".

    Now you will just need to change the data inside the myFilter and then do the
    loader.load();
    After this happened, your store gets the new data and the grid is gonna show you the data you asked for.

    Its easy...
    you have any more questions?

Thread Participants: 3

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..."