1. #111
    Ext User
    Join Date
    May 2009
    Posts
    3
    Vote Rating
    0
    lauralxj is on a distinguished road

      0  

    Default about Treeloader Parameters as Hash

    about Treeloader Parameters as Hash


    Code:
    loader: new Ext.tree.TreeLoader({
                         directFn: Lauralxj.Method.GetTrees,
                         paramsAsHash: true,
                         //paramsOrder:['node','param1','param2'],
                         listeners: {
                             'beforeload': function (loader, node) {
                                 this.baseParams.param1 = 'value1';
                                 this.baseParams.param2 = 'value2';
                             }
                         }
     
                     }),
    Firebug Info:

    Code:
    {"action":"Method","method":"GetTrees","data":["0",{"param1":"value1","param2":"value2"}],"type":"rpc"
    ,"tid":2}
    Server Code
    Code:
     [DirectMethod]
            public JArray GetTrees(string ID,Object obj)
            {
     
                List<DirectTree> nodes = new List<DirectTree>();
                for (int i = 1; i < 10; i++)
                {                
                    DirectTree node = new DirectTree();                
                    node.id = i.ToString();
                    node.href = "#";
                    node.leaf = true;
                    node.text = "逆ヘ" + p.Param1;
                    nodes.Add(node);
                }
     
                return JArray.FromObject(nodes);
            }
    HOW TO GET Parameter obj 'S VALUES? Thanks!

  2. #112
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,395
    Vote Rating
    23
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default Help

    Help


    Hi guys!
    I'm developing a big ux component and i need some help.
    Could someone give me a hand to this post?
    http://www.extjs.com/forum/showthread.php?t=89742

    I read all the forum thying to solve this but nothing really helps me.
    Thank you guys!
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    Owner at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX


  3. #113
    Sencha User Gunmen's Avatar
    Join Date
    Jul 2007
    Posts
    305
    Vote Rating
    0
    Gunmen is on a distinguished road

      0  

    Default


    Hi Evant,

    Any idea when you 0.7 is comming out?

    Thanks!

  4. #114
    Ext User
    Join Date
    Jan 2010
    Posts
    3
    Vote Rating
    0
    fnazarios is on a distinguished road

      0  

    Default Help

    Help


    I am with difficulties to implement yours branch in project Ext.Direct Router. Can help me?

  5. #115
    Sencha User Gunmen's Avatar
    Join Date
    Jul 2007
    Posts
    305
    Vote Rating
    0
    Gunmen is on a distinguished road

      0  

    Arrow


    Until absense of a good and more ExtJs supported grid paging example, here you can find a little example. It's not perfect but better than nothing and maybe you can learn from it.

  6. #116
    Ext User
    Join Date
    Jan 2010
    Posts
    3
    Vote Rating
    0
    fnazarios is on a distinguished road

      0  

    Default Help with ComboBox and Ext.Direct

    Help with ComboBox and Ext.Direct


    -Gunmen

    Tanks reply!

    I've got a serious problem to fill a combobox by DirectStore.

    C# Code:
    Code:
            [DirectMethod]
            public JArray CentroExpedicao()
            {
                //JObject test = new JObject(
                //    new JProperty("value", "Teste do cacete!")
                //);
                JArray test = new JArray(new JObject(
                    new JProperty("value", "caceteeeee")
                ));
                return test;
            }
    Javascript Code:
    Code:
        var storeCentro = new Ext.data.DirectStore({
            storeId:        'open-tickets',
            directFn:       MyApp.Handler1.CentroExpedicao,
            writer:         new Ext.data.JsonWriter({encode:true}),
            reader:         new Ext.data.ArrayReader({
                                fields: ['value']
                            }),
            idProperty:     'value',
            fields:         ['value']
        });
    
                new Ext.form.ComboBox({
                    fieldLabel: 'Centro de Expediçao',
                    name: 'ddlCentroExpedicao',
                    id: 'ddlCentroExpedicao',
                    displayField: 'value',
                    valueField:'value',
                    typeAhead: true,
                    triggerAction: 'all',                
                    mode: 'remote',
                    emptyText: 'Escolha o Centro de Expedição...',
                    store: storeCentro
    
                })
    Response:
    Code:
    {"type":"rpc","tid":2,"action":"Handler1","method":"CentroExpedicao","result":[{"value":"caceteeeee"}],"message":null}
    In the ComboBox appear:


    Can someone help me!

  7. #117
    Sencha User Gunmen's Avatar
    Join Date
    Jul 2007
    Posts
    305
    Vote Rating
    0
    Gunmen is on a distinguished road

      0  

    Red face


    Is ExtJs or Evan Trimboli still supporting this thread / .NET Router implementation?

    Thank you very much!

  8. #118
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,151
    Vote Rating
    674
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Yes, it's still being supported.

    It has nothing to do with direct, looks like your reader definition is incorrect.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  9. #119
    Sencha User Gunmen's Avatar
    Join Date
    Jul 2007
    Posts
    305
    Vote Rating
    0
    Gunmen is on a distinguished road

      0  

    Arrow


    Okay, good to know that you are still online and that you not close an eye on our struggles.

  10. #120
    Sencha User Gunmen's Avatar
    Join Date
    Jul 2007
    Posts
    305
    Vote Rating
    0
    Gunmen is on a distinguished road

      0  

    Red face


    To everybody,

    Did someone test the Evan's Group.ashx example in combination with an extjs application? There is no official example and I can't get it to work.

    Thanks!