[CLOSED] How to pass extra parameter on to TreeLoader

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] How to pass extra parameter on to TreeLoader




    1. How do I pass extra parameters to TreeLoaderhandler?
    2. Is possible to add EventMask to TreeLoader?


    Thank you.

    <ext:TreeGrid ID="TreeGrid1" runat="server" Title="Current Position" AutoWidth="true"
    AutoHeight="true" EnableDD="true">
    
    <Loader>
        <ext:TreeLoader RequestMethod="GET" DataUrl="TreeLoader.ashx" PreloadChildren="true">
        </ext:TreeLoader>
    </Loader>
    
    
    <Columns>
        <ext:TreeGridColumn Header="Account" Width="200" DataIndex="text" />
        <ext:TreeGridColumn Header="Currency" Width="200" DataIndex="text" />
    </Columns>
    
    
    <Root>
        <ext:AsyncTreeNode NodeID="0" Text="root" />
    </Root>
    
    
    </ext:TreeGrid>
  2. #2

    RE: [CLOSED] How to pass extra parameter on to TreeLoader

    Hi,

    How do I pass extra parameters to TreeLoaderhandler?
    Use BaseParams of a TreeLoader
    https://examples1.ext.net/#/TreePane...ageTreeLoader/




    Is possible to add EventMask to TreeLoader?
    Node shows loading animation during request already. But if you need to mask another place then use BeforeLoad and Load listeners of the TreeLoader. For example,


    1.Mask TreePanel
    <BeforeLoad Handler="TreePanel1.body.mask('Loading...', 'x-mask-loading');"/>

    2. Unmask
    <Load Handler="TreePanel1.body.unmask();"/>
  3. #3

    RE: [CLOSED] How to pass extra parameter on to TreeLoader

    How do get information from current node that trigger expand i.e. AsyncTreeNode.CustomAttributes in "???"


    
    
    
    <ext:PageTreeLoader OnNodeLoad="NodeLoad">
    
    
    <BaseParams>
    
    
    <ext:Parameter Name="parm1" Value="???" Mode="Raw" />
    
    
    </BaseParams>
    
    
    </ext:PageTreeLoader>
    Thanks
  4. #4

    RE: [CLOSED] How to pass extra parameter on to TreeLoader

    Hi,

    Value="node.text"
    Value="node.attributes.myattr"
  5. #5

    RE: [CLOSED] How to pass extra parameter on to TreeLoader

    Thanks,

    But node always refered to the last node on the treegrid not the current node click and cause the last node the treegrid to expand. May be I missed somthing?
  6. #6

    RE: [CLOSED] How to pass extra parameter on to TreeLoader

    Hi,

    No, it refers on node which requests the children (when you expand the async node it initiate request to load children, that node will be availbale through 'node' variable)
  7. #7

    RE: [CLOSED] How to pass extra parameter on to TreeLoader

    Attached code describe issue. Click on Acct1 and Acct2 will expand.

    Thanks,
  8. #8

    RE: [CLOSED] How to pass extra parameter on to TreeLoader

    Hi,

    Acct1 and Acct2 nodes have the same id - 1
    asyncNode.NodeID = (Convert.ToInt32(e.NodeID) + 1).ToString();

    id must be unique.
  9. #9

    RE: [CLOSED] How to pass extra parameter on to TreeLoader

    Thank you, works.
  10. #10

    RE: [CLOSED] How to pass extra parameter on to TreeLoader

    Sorry to keep bother you,

    Why the header and column is not size properly after the load?

    Is this fixed in Ext.Net (http://www.extjs.com/forum/showthread.php?t=92864)?

    Thanks
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] [Razor] AjaxProxy pass extra parameter
    By boris in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 07, 2012, 8:15 AM
  2. [CLOSED] [1.0] passing Extra Parameter to button Click from client-side
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jun 07, 2010, 12:36 PM
  3. Listener Fn - How can I pass extra parameters?
    By lionelhutz in forum 1.x Help
    Replies: 0
    Last Post: Dec 10, 2009, 5:25 PM
  4. Coolite MVC Extra Parameter does not work
    By okhans in forum 1.x Help
    Replies: 5
    Last Post: Jul 30, 2009, 3:15 PM
  5. Replies: 2
    Last Post: Jan 27, 2009, 3:56 PM

Posting Permissions