Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9112371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:43:11+00:00 2026-06-17T03:43:11+00:00

I use ExtJS 1.0.1 (in magento) I would like to get all checked nodes

  • 0

I use ExtJS 1.0.1 (in magento)

I would like to get all checked nodes on form submit. And I stucked here:

tree.html (initialization):

tree<?php echo $this->getId() ?> = new Ext.tree.TreePanel.Enhanced('<?php echo $_divId ?>', {
            animate:          false,
            loader:           categoryLoader,
            enableDD:         false,
            containerScroll:  true,
            rootVisible:      '<?php echo $this->getRoot()->getIsVisible() ?>',
            useAjax:          true,
            currentNodeId:    <?php echo (int) $this->getCategoryId() ?>,
            addNodeTo:        false
        });

On submit function:

function submit()
{

   console.log(tree'.$this->getId().');
   // got html code <div id="treeoptions_fieldset992cb0dd9a7da511e5596a229a5386d5_select_catalogb0f2cd4faa4f13b72f0df314bdc222ec" class="tree x-tree"><ul class="x-tree-root-ct x-tree-lines" id="ext-gen5859">...</ul></div>

   var checked_nodes = tree'.$this->getId().'.getChecked();
   // got an error Uncaught TypeError: Object #<HTMLDivElement> has no method 'getChecked'
}

Magento uses prototypeJS in admin panel.
The question is how to address to checked_nodes to run getChecked()?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T03:43:12+00:00Added an answer on June 17, 2026 at 3:43 am

    get works!

    I created the object after treegetId() ?> init:

    function av_OkButton()
        {
            var tree = null;
    
            this.onPress = function()
            {
                var ids = this.tree.getChecked();
            }
    
            this.getTree = function()
            {
                return this.tree;
            }
    
            this.setTree = function(treeObj)
            {
                this.tree = treeObj;
    
                return this;
            }
        }
    
    okButton = new av_OkButton;
    okButton.setTree(tree<?php echo $this->getId() ?>);
    

    And then created submit button:

    Cannot understand what the difference between I did and what I have now but it works for me

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use the UploadFile example in EXTJS ( http://dev.sencha.com/deploy/dev/examples/form/file-upload.html ) but I don't know
I have a simple script and use extjs 4.1.1: <html> <head> <link rel=stylesheet type=text/css
ExtJS XTemplate lets you use . in a for tag to loop through all
Newbie question here. I am trying to use the django-extjs library in my django
In my controller i use the record.save function. In extjs 4.07 this would send
I use numberField in ExtJS Form and want to enter only positive numbers, in
I use extjs mvc and i define combobox Ext.define('Ext.view.Common.PersonageComboBox', { extend: 'Ext.form.ComboBox', alias: 'widget.PersonageComboBox',
I use ExtJs 4.1 and DeftJs. Some class is defined with a constructor like
I'd like to use the Ext.Element object interface from ExtJS to traverse an XML
I use ExtJs 4.1 and DeftJs. When using multiple instances of the same views

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.