Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Feb 2009
    Posts
    316
    Vote Rating
    3
    azuroff will become famous soon enough

      0  

    Default [FIXED-EXTJSIV-728] TreeStore doesn't use model's proxy?

    [FIXED-EXTJSIV-728] TreeStore doesn't use model's proxy?


    After playing with the TreeGrid example for a while (http://dev.sencha.com/deploy/ext-4.0-beta2/examples/tree/treegrid.html), it looks like the TreeStore doesn't use the proxy that's defined as part of the model.

    If the proxy is defined as part of the TreeStore itself, everything works fine - a call is made to the appropriate proxy url -

    Code:
            
    Ext.define('Task', {
                extend: 'Ext.data.Model',
                fields: [
                    {name: 'task',     type: 'string'},
                    {name: 'user',     type: 'string'},
                    {name: 'duration', type: 'string'}
                ]
            });
    
            var store = new Ext.data.TreeStore({
                model: 'Task',
                proxy: {
                    type: 'ajax',
                    //the store will get the content from the .json file
                    url: 'treegrid.json'
                },
                root: {
                    expanded: true
                },
                folderSort: true
            });
    If the proxy is defined as part of the Model, however, nothing happens -

    Code:
            //we want to setup a model and store instead of using dataUrl
            Ext.define('Task', {
                extend: 'Ext.data.Model',
                fields: [
                    {name: 'task',     type: 'string'},
                    {name: 'user',     type: 'string'},
                    {name: 'duration', type: 'string'}
                ],
                proxy: {
                    type: 'ajax',
                    //the store will get the content from the .json file
                    url: 'treegrid.json'
                }
            });
    
            var store = new Ext.data.TreeStore({
                model: 'Task',
                root: {
                    expanded: true
                },
                folderSort: true
            });
    Is there something I'm missing here? The docs for the TreeStore class are a bit on the sparse side, so it's entirely possible it's working as designed...

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    What you are trying to do should be possible. We will make sure this is fixed for the next release.

  3. #3
    Sencha User
    Join Date
    May 2011
    Posts
    92
    Vote Rating
    0
    ext-spring-mvc is on a distinguished road

      0  

    Default


    any update?
    still open in 4.0.2?

Similar Threads

  1. Replies: 0
    Last Post: 6 Apr 2011, 10:12 AM
  2. Replies: 0
    Last Post: 2 Apr 2011, 9:20 AM
  3. NestedList and TreeStore with ajax proxy
    By lukasz_b in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 24 Jan 2011, 11:14 PM
  4. Replies: 2
    Last Post: 7 Jan 2011, 7:26 AM
  5. Tree not showing (using TreeStore, TreeModel, Async, Proxy)
    By HerrB in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 14 Jun 2009, 11:50 PM

Thread Participants: 2

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