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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:34:59+00:00 2026-06-18T10:34:59+00:00

I have a problem with my product view. I want to display product data.

  • 0

I have a problem with my product view. I want to display product data. each product is a “box” with an image and text. I want to display six products on a panel. As of the fact that i have many products i want to have a “carousel like view”. My idea was the following: Place 6 products on a panel. Load 3 panels and place each panel as a carousel item so that i can swipe to get to another “page”.

To save performance I tried to always have only 3 items in the carousel. The active “page” and the page before, and the page after, so that I can swipe to left/right and the next page can be loaded.

I tried to put my logic in the “onActiveItemChange”-Listener of the carousel, but I had massive problems with adding/removing carousel items. So my Question is is it possible to do what i want to accomplish?

Is there a better alternative? Of course my data is in a store, but I don’t want that standard list view.

Another Question: Because my first attempt with the carousel failed i tried to build a Ext.Container (card layout) with the panels on it. But how can I listen to a swipe event on a Panel???

thanks for help 😉

  • 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-18T10:35:00+00:00Added an answer on June 18, 2026 at 10:35 am

    I think I understand your issue. Assuming you’ve got 3 items and you’re always viewing the middle one (as you move forward, item 0 gets destroyed and one item gets created). And assuming that each item has an id associated with its location in the list.

    var current_item = Ext.getCmp('carousel_name').getActiveItem().getId();
    current_item = Number(current_item.replace('item', ''));
    
    //Objects to create
    var next_item = current_item + 1;
    var previous_item = current_item - 1;
    
    //Objects to destroy
    var next2_item = current_item + 2;
    var previous2_item = current_item - 2;
    
    //Create items
    var createItem = function(item_location, type){
        var carousel_item = create_content(item_location);
    
        if(type == 'next'){
            Ext.getCmp('carousel_name').add(carousel_item);
        }else if(type == 'previous'){
            Ext.getCmp('carousel_name').insert(0, carousel_item);
            Ext.getCmp('carousel_name').setActiveItem(1);
        }
    }
    createItem(next_item,'next');
    createItem(previous_item,'previous');
    
    //Destroy items
    if(Ext.getCmp('item'+previous2_item)){
        Ext.getCmp('carousel_name').getItems().items[0].destroy();//This is a hack, for some reason with the above commented out line, the item was getting destroyed but wasn't being removed from carousel_name
    }
    if(Ext.getCmp('item'+next2_item)){
        Ext.getCmp('carousel_name').getItems().items[Ext.getCmp('carousel_name').getMaxItemIndex()].destroy();//This is a hack, consistency with previous destroy (above)
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have data grid view with columns product name and product image and I
My problem is that I have three different stock sizes for each product that
I have a problem, I want to display different detail pages for different types
I have a problem getting the right Price for a product based on Effectivity
I have a product table where the description column is fulltext indexed. The problem
The problem: let's say I have two tables Client , and Product , in
i've a problem with my tabularinline field. I have model like this class Product(models.Model):
I have problems with how I should structure my product listing pages, products pages,
I have a bit of a problem with user controls. Basically what I want
I have a model Product with a description field. Now I want to have

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.