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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:06:55+00:00 2026-05-31T16:06:55+00:00

I have a view ( Panel ) that is a card layout. I have

  • 0

I have a view (Panel) that is a card layout. I have a Store of, say, n items. I want to create a stack of n cards, each of which is backed by an item in the Store. How can I do this without manually adding n cards in a for loop, iterating through the items in the Store?

  • 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-31T16:06:56+00:00Added an answer on May 31, 2026 at 4:06 pm

    You need a separate list to contain all your cards, you CANNOT connect panel’s list of cards with a store (at least in current version of Sencha Touch).

    You cannot avoid adding manually, but you can avoid for loops:

    Ext.regModel('someModel', { 
        fields: [
            {name: 'title', type: 'string' },
            {name: 'info', type: 'string' }
        ]
    });
    
    var someStore = new Ext.data.Store({ 
    
        model: "someModel",
        listeners:{
            add:function(store, list, index){
                //here list is list of records you added
                var item = list[0];
                panelinstance.insert(index, {...whatever component...panel,list,carousal whatever});
            }
        } 
    });
    

    Careful about the caller: Add one item at a time to your store(this might sound ridiculous), but I think it is the only way to make your panel “CONNECT” to a store.

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

Sidebar

Related Questions

I have a view that I want to add some custom drawing to. I
I am using sencha to create a carousel which has multiple card panels. Each
I have ExtJS View-Port panel , that contain center panel, that contain tablpanel ,
I have an MVC app in Extjs 4 which has a View (extending Ext.panel.Panel
I have: 1 paging scroll view at the bottom (like a panel) that is
I have a tree view. I am creating the tree view items dynamically. Each
I have a panel/page that has a view (it's a view page) that some
I have a View which I want to have a label and 2 buttons
I have a view that has a list of jobs in it, with data
I have a view using a master page that contains some javascript that needs

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.