Results 1 to 2 of 2

Thread: docs: treepanel's selectPath() and ensureVisible() allows path to be record entity

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    122

    Default docs: treepanel's selectPath() and ensureVisible() allows path to be record entity

    The methods selectPath() and ensureVisible() of class Ext.tree.Panel allow the first parameter to be a record. Only String is documented as an allowed parameter type for path (in 5.1.1) docs: http://docs.sencha.com/extjs/5.1/5.1...Ext.tree.Panel

    Is another method meant to be used to focus/scrollTo a record in a tree or is this information just missing in the docs?

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108

    Default

    If you have the record you can call record.getPath() to get the path to the node then use the selectPath method.
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Similar Threads

  1. selectPath of already expanded path
    By keckeroo in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 27 May 2010, 11:47 AM
  2. Replies: 1
    Last Post: 3 May 2010, 6:45 AM
  3. TreePanel selectPath function
    By juandj in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 2 Jun 2008, 1:16 PM
  4. TreePanel.selectPath & expandPath
    By BernardChhun in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 16 Feb 2007, 8:11 AM
  5. TreePanel: TreeNode.ensureVisible() fails for depth >= 2
    By zesh in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 26 Jan 2007, 12:18 AM

Tags for this Thread

Posting Permissions

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