1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    1
    Vote Rating
    0
    jsm174 is on a distinguished road

      0  

    Default NestedList back button only remembers text and items?

    NestedList back button only remembers text and items?


    I'm trying to implement a navbar title change when the user hits the back button. For my nested list, I implemented additional variables to represent the titles.
    Code:
           items: [
                    {  
                       text: 'Native Applications',
                       shortText: 'Native Apps'
                       items: [
                          {               
                             text: 'Mobile Provisions',
                             shortText: 'Provisions',
                             items: mobileProvisionItems
                          },
           .
           .
           .
     
            nestedList.on('listchange', function(list, item) {
                   if (item.shortText) {
                      toolbar.setTitle(item.shortText);
                   }   
            });
    When I navigate forward shortText is always available, however when I navigate back, shortText is always null. Was this the intended behavior?

    Thanks
    Jason
    Last edited by hendricd; 6 Aug 2010 at 1:26 PM. Reason: [code/] tags please

Similar Threads

  1. add new items to nestedlist
    By Alexander.K in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 7 Sep 2010, 6:17 PM
  2. [OPEN] [CLOSED-184] Nestedlist breaking on back button click
    By blessan in forum Sencha Touch 1.x: Bugs
    Replies: 12
    Last Post: 6 Sep 2010, 12:34 PM
  3. Text box back ground color
    By kishorgaur in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 4 Jun 2009, 12:07 AM

Tags for this Thread