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 8075671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:04:09+00:00 2026-06-05T15:04:09+00:00

In a sencha touch 2 Ext.navigation.View , it is possible to push() and pop()

  • 0

In a sencha touch 2 Ext.navigation.View, it is possible to push() and pop() other views in and out. Those other views fire events like hide and show.Sadly, those events are fired in this order when pushing: (note the bold ones)

  1. initialize
  2. hide
  3. activate
  4. show

and like this when popping:

  1. deactivate
  2. hide
  3. show
  4. remove
  5. destroy

So relying on either show or hide event is not the best idea as both get fired in both situations.
I consider this a bug and something similar has already been discussed. Nevertheless this behaviour is still present in the version I use (ST 2.0.1.1) and according to the explanation of @rdougan in the forum:

The reason behind this is that when an item is removed from a card
layout, it may actually be shown somewhere else – or perhaps it is
changing to be floatable. So we must revert the item back to its
original visible state.

it won’t be changed as well. So I was trying to find out which event is really happening.

  • 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-05T15:04:10+00:00Added an answer on June 5, 2026 at 3:04 pm

    There is a solution for this problem. Assuming one listens to the event inside the view, not a controller, you may use this litte snippet:

    Ext.Array.contains(this.up('navigationview').getActiveItem().getXTypes().split('/'), this.xtype)
    

    to check whether your view is actually shown (true) or hidden (false). Of course, you have to define your own xtype config property on the views you are using to make that work. In my case, it is an Ext.Panel.

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

Sidebar

Related Questions

I have a MVC-styled sencha touch app and normally I used Ext.apply(app.views, { loginPage:
I'm writing a Sencha Touch 1.1 MVC app. My view code looks like this
Let's say I have a Sencha Touch model like this: Ext.regModel('User', { 'fields': [{
I have the following Store declared in my sencha touch application Ext.define('Sample.store.ImageStore', { extend:
Just started using Sencha Touch 2 and need to integrate the Leaflet plugin https://github.com/VinylFox/Ext.ux.touch.Leaflet/tree/master/src
Sencha Touch seems like an amazing way to develop mobile apps. I've seen posts
I am new to Sencha Touch 2 and I want to have something like:
New to sencha touch here. I've checked out quite a few tutorials online. I
I would like my store in Sencha touch to load a different PHP file
I'm trying to fire a custom event in sencha touch, and it seems to

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.