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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:12:18+00:00 2026-05-24T21:12:18+00:00

I have a nestedList with a few levels that appears when the user presses

  • 0

I have a nestedList with a few levels that appears when the user presses a button on the screen. When the nestedList appears, there is no back button (because we’re at the top of the tree, so understandably there is nowhere to go back to), whereas tapping on items in the list takes you to screens with a back button.

I’d like to add a back button to the first screen. I have managed to do this, but not without adding the same back button to every sublist in the nestedList – this has the effect of 1 back button at the top level, and 2 back buttons (one to take you out of the nestledList completely, and one to take you up a level) at every subsequent level.

Can anyone help me figure out how to have 1 back button on each screen, including the top level to close the list?

Many thanks

PS a nasty workaround that I’m using at the moment is to have a “close” button in the top right of every screen instead.

  • 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-05-24T21:12:19+00:00Added an answer on May 24, 2026 at 9:12 pm

    I don’t know how comfortable you are with the inner workings of Sencha Touch so how you go about doing this is up to you–

    The back button is there, hidden, when the nested list is shown (created in the initComponent function with hidden: true), and then onBackTap, onItemTap and setActivePath will all call syncToolbar near the end of their functions which is where the back button is hidden when you are at a depth of 0.

    So there are 2 places you need to do something about, first is initComponent which is easy– just implement initComponent in your nestedList, call the superclass’ initComponent and then set the backButton visible

    var myNestedList = new Ext.NestedList({
      ...,
      initComponent: function() {
        myNestedList.superclass.initComponent.call(this);
        this.backButton.setVisible(true);
      },
      ...
    });
    

    That takes care of showing it intially.. how you care to deal with fixing syncToolbar is up to you. You can use Ext.override, you can straight up copy and paste the whole syncToolbar function into your nestedList object which would also override it or you could do what you’re told never to do and just edit the sencha-touch.js file directly. However you decide to do it, what you’re looking to change is

    syncToolbar: function(card) {
      ...
      backToggleMth = (depth !== 0) ? 'show' : 'hide';
    
      if (backBtn) {
        backBtn[backToggleMth]();
        if (parentNode) { 
          backBtn.setText(backBtnText); 
        }
      }
      ... };
    

    You can either change backToggleMth to = 'show' or just delete the if (backBtn {...} all together.

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

Sidebar

Related Questions

I have created a nested list with drag/drop functionality. My issue is that I
Have you ever seen any of there error messages? -- SQL Server 2000 Could
I have a large nested list that I am trying to animate using jquery
I've seen quite a few examples of a sencha touch app with a nestedList
I have a nested list that looks like this: mylist = [['A;B', 'C'], ['D;E',
I have a model that looks like this: Ext.regModel('TreeItem', { fields: [ { name:
I have a nested list that I am using in Robot Framework. I would
I have this nested list structure. My tree can go to n level. I
Hullo there, I am building a Sencha Touch iPhone app that utilises a TreeStore
i have list view inside list view a button when i click button list

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.