[CLOSED] Set selected node on initial page load

  1. #1

    [CLOSED] Set selected node on initial page load

    How can I set the selected node during the page load event without triggering the select event? I want the page to render with a node preselected.
    Last edited by Daniil; Jul 19, 2012 at 3:40 PM. Reason: [CLOSED]
  2. #2
    Hi @jchau,

    I would implement it this way.

    Example
    <Listeners>
        <ViewReady Handler="this.getSelectionModel().select(this.getStore().getNodeById('nodeId'));" />
    </Listeners>
    If you use a TreeStore to load nodes, then, probably, you should use its Load listener.

Similar Threads

  1. Replies: 3
    Last Post: Jun 27, 2012, 2:19 PM
  2. [ Initial Page Start Loading (Mask Load) ]
    By iDevSEO in forum 1.x Help
    Replies: 2
    Last Post: Dec 29, 2011, 1:15 PM
  3. Replies: 1
    Last Post: Nov 24, 2010, 3:04 PM
  4. [CLOSED] How to deselect the focus for the tree node in page load?
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 15, 2009, 10:02 AM
  5. [CLOSED] How to set the focus for the tree node in page load?
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 15, 2009, 8:43 AM

Posting Permissions