[CLOSED] TreeNode JS getUI method

  1. #1

    [CLOSED] TreeNode JS getUI method

    Hi,

    In older versions I use this code to find UI properties of a treenode

    node.ui.checked
    or
    node.getUI().checked
    And now I'm unable to find these properties. how can I find it for use it?
    Last edited by Daniil; Jul 25, 2012 at 1:04 AM. Reason: [CLOSED]
  2. #2
    Hi,

    A Node is just a record now, there is no encapsulated UI, it is managed by View.

    The related changelog item #76.
    https://examples2.ext.net/#/Getting_...nts/CHANGELOG/

    76. TreeNode has been renamed to Node. Node has no client side getUI method. To get a node's HTML element, use the view's getNode method. Example //New tree.getView().getNode(node)
    But in your case you should not use View, I think. There is the "checked" field in the node.
    node.get("checked");
    Hope this helps.
  3. #3
    Well, I have to use the following properties/functions:

    node.ui.rendered (get) => it could be replaced by node.isVisible() ??
    node.ui.toggleCheck(someVar); =>
    node.ui.checkbox.checked (get) => it could be replaced by node.get('checked')
    Could you correct me, and tell me what is the equivalent of toggleCheck?
  4. #4
    Quote Originally Posted by softmachine2011 View Post
    node.ui.rendered (get) => it could be replaced by node.isVisible() ??
    I think yes.

    Quote Originally Posted by softmachine2011 View Post
    node.ui.toggleCheck(someVar); =>
    Please use:
    node.set('checked', true || false);
    Quote Originally Posted by softmachine2011 View Post
    node.ui.checkbox.checked (get) => it could be replaced by node.get('checked')
    Confirm.

Similar Threads

  1. Replies: 1
    Last Post: Jul 25, 2011, 9:59 AM
  2. [CLOSED] [8.2] TreeNode CustomAttributes
    By HOWARDJ in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 11, 2010, 9:19 AM
  3. Replies: 0
    Last Post: Dec 10, 2009, 11:14 AM
  4. [CLOSED] TreeNode Height
    By Ben in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 17, 2009, 10:56 AM
  5. [CLOSED] Getting TreeNode by id?
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 25, 2009, 10:25 AM

Tags for this Thread

Posting Permissions