Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext User
    Join Date
    Dec 2009
    Posts
    23
    Vote Rating
    1
    Hollywood is on a distinguished road

      0  

    Question Store Refresh problem

    Store Refresh problem


    hey everyone,

    i have a dataview whose store is loaded whenever a user double clicks on a row in the grid,
    Code:
      on double click,
    
      store.load();
    
      //make ajax call and update values
    after which i make an ajax call to update fields in the database and then i load the grid again.but now when i double click the row in the grid the updated values do no refect in the dataview,somehow it keeps using the old values in the store.when i look at the JSON of the store , it contains the updated values but my dataview is somehow still using the old ones.

    I have tried using store.removeAll(); statement immediately after store.load(); so that the store gets empty and when the row is dbl clicked the next time a fresh store gets loaded. but still my dataview shows the old values.

    only if i refresh the page does it show the updated values.

    thanks

    hw

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    9
    fay will become famous soon enough fay will become famous soon enough

      0  

    Default


    Have you tried the dataview's refresh() method?

  3. #3
    Ext User
    Join Date
    Dec 2009
    Posts
    23
    Vote Rating
    1
    Hollywood is on a distinguished road

      0  

    Default


    thanks dude.. no i hadn't done that ))

    Hw

  4. #4
    Ext User
    Join Date
    Dec 2009
    Posts
    23
    Vote Rating
    1
    Hollywood is on a distinguished road

      0  

    Default el is undefined ,getTemplateTarget() ??

    el is undefined ,getTemplateTarget() ??


    when i try using dataview1.refresh() , firebug shows up with the following error:
    Code:
    el is undefined
    el.update("")
    on a closer look at the refresh method's code, i see that el is assigned the value of getTemplateTarget() , i am assuming the template type is the tpl ..

    any suggestions on future course of action

    regards

    Hw

Thread Participants: 1