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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:53:28+00:00 2026-06-09T04:53:28+00:00

I have implemented a list view for different colors in Sencha Touch. And implemented

  • 0

I have implemented a list view for different colors in Sencha Touch.

And implemented a item tap method to push the view in container.

And Implemented 4 views for each 4 color RedPage.js, WhitePage.js, yelloPage.js, GreenPage.js.

View:

{
           xtype: 'list',
           id : 'ColorsList'
           width: '20%',

           itemTpl: [
                 '<div><b>{Color}<b></div>'
                 ],


       data: [
              {Color: 'Red' },
              {Color: 'Blue'},
              {Color: 'Yellow},
              {Color: 'Green}
              ]
       },

Container:

ColorsList: ‘#ColorsList’,

init function(){
..
..
..
..
  'ColorsList' : {
                     itemtap : 'ColorsPagesSelected'
                     },

...
...
...
},

ColorsPagesSelected Method:

 ColorsPagesSelected: function() {

           alert('Color page pushed');

           this.getColorrightnavigation().push(Ext.create('ArtGalleryApp.view.RedPage'));


           },    

Since i used Colorslist id and used to push RedPage for list, it displays RedPage for each item in the list.

I dont know how to get different pages for differnt rows

Can any one help me pls thanks in advance

  • 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-09T04:53:29+00:00Added an answer on June 9, 2026 at 4:53 am

    My favorite hack for this is to assign functions to records

    {
      xtype: 'list',
      id: 'ColorsList'
      width: '20%',
      itemTpl: ['<div><b>{Color}<b></div>'],
    
    
      data: [{
        Color: 'Red',
        getPage: function() {
          return Ext.create('ArtGalleryApp.view.RedPage');
        }
      }, {
        Color: 'Blue'
      }, {
        Color: 'Yellow},
                  {Color: '
        Green
      }]
    },
    
    init function(){
      'ColorsList' : {
         itemtap : 'ColorsPagesSelected'
       },   
     ColorsPagesSelected: function(ct, index, target, record) {
        alert('Color page pushed');
        this.getColorrightnavigation().push(record.getPage());
      }    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented a list view. Each item in my list view has two
i have implemented a list view its working fine but when i click on
I have a website that lets people view rows in a table (each row
I'm building a Qt application that have about 30 different views (QWidgets). My idea
I have a list of items displayed as a ListBox. <ListView ItemsSource={Binding ListOfSomeItems}> <ListView.View>
I am doing this in JSF 2.0. I have implemented add and view pages
I'd like to implement a ListView that will have a list of SelectedItems as
I have to implement a one linked list but it should put object in
I have a Linked List and I want to implement a function: Random_Shuffle_List (struct
Some open source libraries have tendency to re implement basic structures like string, 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.