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

  • SEARCH
  • Home
  • 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 8203817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:41:30+00:00 2026-06-07T07:41:30+00:00

I have the following Ext.getElementById call from a specific part of application code, that

  • 0

I have the following Ext.getElementById call from a specific part of application code, that does work when called in this context:

init: function() {
    // template method called when app boots; before Viewport is created

    this.control({
        'launcherlist': {
            itemclick: function (dataView, record) {
            Ext.getElementById('element-id');
         },
    }
    ...
}

However I need to call the getElementById at an earlier stage, before having any user- triggered event occurring.

When getElementById is called directly within init it doesn’t work as init is called when app boots; before Viewport is created.

So I decided to override the controller’s onLaunch event, since onLaunch is a template method like init, but is called after Viewport is created:

onLaunch: function() {
    Ext.getElementById('element-id');
},

However this didn’t work either.

TL/DR

Where can I put a working Ext.getElementById call before any user-triggered-action takes place?

  • 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-07T07:41:31+00:00Added an answer on June 7, 2026 at 7:41 am

    Solution:

    Since the widget that renders the DOM element I’m looking for extends Ext.view.View, the correct event after which Ext.get can actually find the rendered element is the viewready event.

    P.S. One should use Ext.get anywhere rather than Ext.getElementById as the latter is a private method.

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

Sidebar

Related Questions

I have following code Ext.regModel('Centre', { fields: ['name', 'url'] }); Ext.application({ name: 'Sencha', launch:
I have following code. Damn, I stuck with this, I know that is very
I have following code that I creating a grid var store = Ext.create('Ext.data.ArrayStore', {
I have following code i want that window opened uses Ext.layout.BorderLayout and also on
I have created 3 classes as following Ext.mine.TextParent - Inherting from Textfield Ext.mine.child.TextChildA -
I have issues understanding scopes in javascript.Let's suppose i have the following code: Ext.define('MA.controller.user',{
I have the following code - var options = new Ext.data.JsonStore({ model: 'options_model', data:
I have the following code within my .aspx file <ext:GridPanel runat=server ID=GridPanel1 Height=450 Title=EmployeeList
I have the following extjs code that createa 2 tabs and a grid. How
I have the following code in my controller. This works fine in Internet Explorer 9 and

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.