1. #1
    Sencha Premium Member Salakar's Avatar
    Join Date
    Aug 2013
    Location
    Nottingham
    Posts
    90
    Vote Rating
    4
    Salakar is on a distinguished road

      0  

    Default Dynamic component and store creation - button press

    Dynamic component and store creation - button press


    Been trying to get this working for almost a week and no joy. I've only used extjs/architect for about 2 weeks so go easy on me please

    Problem:
    On a button press creating a component so for example a dataview with it's own fresh new store, so both store and dataview created at button press. I can create both of them no problem - i just can't seem to get them connected so to speak. They show as working - but adding a record to the store doesn't display on the dataview =/

    Current code I've been trying (this is in my button handler) - quickly mashed this together just to show what i'm trying to do - fully commented on what's going wrong: http://pastebin.com/JmDRMhTz

    T
    hank you

  2. #2
    Sencha - Architect Dev Team
    Join Date
    Jan 2009
    Location
    Frederick, Maryland
    Posts
    810
    Vote Rating
    31
    jminnick has a spectacular aura about jminnick has a spectacular aura about

      0  

    Default


    Quote Originally Posted by Salakar View Post
    Been trying to get this working for almost a week and no joy. I've only used extjs/architect for about 2 weeks so go easy on me please

    Problem:
    On a button press creating a component so for example a dataview with it's own fresh new store, so both store and dataview created at button press. I can create both of them no problem - i just can't seem to get them connected so to speak. They show as working - but adding a record to the store doesn't display on the dataview =/

    Current code I've been trying (this is in my button handler) - quickly mashed this together just to show what i'm trying to do - fully commented on what's going wrong: http://pastebin.com/JmDRMhTz

    T
    hank you
    At a quick glance; I see no where in your code where you're calling a load() and I don't see autoLoad: true.
    Jason Minnick
    Sencha Architect Development Team

  3. #3
    Sencha Premium Member Salakar's Avatar
    Join Date
    Aug 2013
    Location
    Nottingham
    Posts
    90
    Vote Rating
    4
    Salakar is on a distinguished road

      0  

    Default


    I did have a store.load() further down in my code and it still wasn't working, just tried autoLoad also and still the dataview not rendering items - double checked the dataview and it does render correctly if store is not dynamically created. Checked the store and it is displaying the items that i added to it so not sure what's going on.

    Arrrghhhhh

  4. #4
    Sencha - Architect Dev Team
    Join Date
    Jan 2009
    Location
    Frederick, Maryland
    Posts
    810
    Vote Rating
    31
    jminnick has a spectacular aura about jminnick has a spectacular aura about

      0  

    Default


    Quote Originally Posted by Salakar View Post
    I did have a store.load() further down in my code and it still wasn't working, just tried autoLoad also and still the dataview not rendering items - double checked the dataview and it does render correctly if store is not dynamically created. Checked the store and it is displaying the items that i added to it so not sure what's going on.

    Arrrghhhhh
    Is there any chance you can send me the project?
    Jason Minnick
    Sencha Architect Development Team

  5. #5
    Sencha Premium Member Salakar's Avatar
    Join Date
    Aug 2013
    Location
    Nottingham
    Posts
    90
    Vote Rating
    4
    Salakar is on a distinguished road

      0  

    Default


    Ok I will PM you the project later today, bear in mind though I'm fairly new at all so it's far from perfect and it's also far from finished with a lot of experimentation going on :P

    p.s it's also built in SA 3 preview.

Thread Participants: 1

Tags for this Thread

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