Results 1 to 3 of 3

Thread: TreeStore Ajax Proxy not Issuing requests

  1. #1
    Sencha User
    Join Date
    Apr 2016
    Posts
    4
    Answers
    1

    Default TreeStore Ajax Proxy not Issuing requests

    Hello everyone


    I am trying to use a treepanel and treestore. I have the proxy configured in the model (ive also tried placing it in the store), but, the proxy never sends a request to the server, not when the store loads, not when I reload it, The store.load() event does fire, success is true, records.length is 0, all other properties, like operation.url, are undefined. It's like its not aware of the Ajax proxy object being set up. What could be the issue? Your help is greatly appreciated.

    Thank you so much to any help in advance...


    VIEW::
    Code:
    Ext.define('Jewel.view.test.Test', 
    {
        extend: 'Ext.Panel',
        xtype: 'test', 
        requires: [
            'Ext.tree.Panel',
            'Jewel.store.Test'
        ],
        items: [
        {
            border:true,
            flex:1,
            items: [
            {
                xtype:'treepanel',
                title: 'TEST TREE',
                //rootVisible: false,            
                store: 
                {
                    type: 'test'
                }
            }]
        }]
    });
    STORE:
    Code:
    Ext.define('Jewel.store.Test', 
    {
        extend: 'Ext.data.TreeStore',
        alias: 'store.test',    
        model: 'Jewel.model.Test',
        root: {
            //name: 'Sections',
            pid: 'root',
            text: 'Document Sections',
            expanded: true        
        }
    });
    MODEL:
    Code:
    Ext.define('Jewel.model.Test', 
    {
        extend: 'Ext.data.Model',
        alias: 'model.test',
        fields: [
            {name: 'name'},
            {name: 'email'},
            {name: 'phone'}
        ] 
    });
    INSTANCE CREATION (IN A TAB PANEL OF SAMPLE APPLICATION):
    Code:
    {
                title: ' Test',            
                iconCls: 'fa-users',
                layout: {
                    type: 'vbox',
                    align : 'stretch',
                    pack  : 'start'
                },
                items: 
                [
                   {
                        xtype: 'test',
                        flex:1
                    }
                ]
            }

  2. #2
    Sencha User
    Join Date
    Apr 2016
    Posts
    4
    Answers
    1

    Default

    Happens every time. Cant figure it out forever. Make a post or support request. Figure it out 15 minutes later.

  3. #3
    Ext JS Premium Member
    Join Date
    Aug 2007
    Location
    Sarnia, ON, Canada
    Posts
    62

    Default

    Quote Originally Posted by pjats View Post
    Happens every time. Cant figure it out forever. Make a post or support request. Figure it out 15 minutes later.

    What was the cause?

Similar Threads

  1. Replies: 9
    Last Post: 23 Sep 2013, 5:42 AM
  2. Replies: 24
    Last Post: 25 Oct 2011, 1:07 AM
  3. Remove querystring from ajax requests fired by data.Proxy?
    By johnnywengluu in forum Ext: Discussion
    Replies: 1
    Last Post: 26 Jul 2011, 1:14 AM
  4. Unify Ajax requests and Model Proxy requests.
    By iamcam in forum Sencha Touch 1.x: Bugs
    Replies: 0
    Last Post: 29 Jun 2011, 9:55 PM
  5. Replies: 17
    Last Post: 29 Jun 2011, 2:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •