1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    3
    Vote Rating
    0
    yx200404 is on a distinguished road

      0  

    Default I can't update the grid's store,pls help me

    I can't update the grid's store,pls help me


    This is my code.
    when a grid was inited,i want to modify some colunms values.
    Code:
    ColumnConfig column = new ColumnConfig();
    		column.setId("net");
    		column.setHeader("net");
    		column.setWidth(100);
    		configs.add(column);
    .....
    if(null!=store){
    			for(BeanModel model : store.getModels()) {
    				model.set("net","ONLINE");
    			}
    			store.commitChanges();
    		 }
    .....
    but when the program running to for,the "net" colunm of the grid was not been changed...please help me to fix it.thanks very much.

  2. #2
    Sencha User
    Join Date
    Feb 2011
    Posts
    3
    Vote Rating
    0
    yx200404 is on a distinguished road

      0  

    Default


    OH..i know..
    it's easy >o<


    store.getRecord(model).set("net",message.getValue());

    that's OK

  3. #3
    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


    store.update(model) will also work if you do not want to use Record's.

Thread Participants: 1

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