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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:47:57+00:00 2026-06-05T00:47:57+00:00

I have a problem I have been struggling with for quite a while now

  • 0

I have a problem I have been struggling with for quite a while now so hopefully someone can help me out here.

Say you have this DataView object:

Ext.define('Score.view.GameInfoPanel', {
    extend: 'Ext.DataView',

    config: {       
        store: {
            fields: ['Name', 'Score'],
            data: [
                {Name: 'test', Score: '1'},
                {Name: 'test2', Score: '100'}
            ]
        },
        itemTpl: '{Name} - {Score}',
        fullscreen: false
    }
});

I thought I could use an instance of this DataView on different Panels like this:

var gameInfo = Ext.create('Score.view.GameInfoPanel',  {
    xtype: 'gameInfo',
    scrollable: false,
    fullscreen: false,
    height: 100,
    flex: 2,
});


Ext.define('Score.view.PlayerView', {
    extend: 'Ext.Panel',
    xtype: 'playerview',

    requires: [
        'Score.view.GameInfoPanel'
    ],

    config: {
        title: 'Player Info',
        iconCls: 'user',

        layout: 'vbox',
        scrollable: true,

        items: [
            {
                docked: 'top',
                xtype: 'toolbar',
                id: 'toolbarId',
                title: 'Player Info',
            },
            {
                xtype: 'panel',
                html: 'before',
                flex: 1
            },
            gameInfo,
            {
                xtype: 'panel',
                html: 'after',
                flex: 3
            }
        ]
    }
});

When would show this panel in Safari I see that the DataView is in the page/panel but it is hidden. The problem is probably that x-item-hidden is set for this DataView instance. After struggling with this for hours I have no clue why this is and how to solve this. The only suggestions I could find is that I should set the height of the DataView and make it not scrollable. All of that does not seem to work. So any feedback would be very much appreciated!

  • 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-05T00:47:59+00:00Added an answer on June 5, 2026 at 12:47 am

    It took a while but I finally solved it. There were a few problems with the initial code.

    In the definition of the GameInfoPanel the configuration attribute ‘fullscreen’ should not be used. I am not exactly sure why. But from what I understood is that the view(s) in which this view is used already set this attribute. By setting it again, even when it is set to false, it will hide the view.

    Furthermore the ‘xtype’ attribute should be set. In this case I set it to ‘gameinfo’. This is because you then can configure this view in the PlayerView. Also by setting the ‘id’ you can refer to this instance of the GameInfoPanel in your controller. So the PlayerView looks like this in the end:

    Ext.define('Score.view.PlayerView', {
      extend: 'Ext.Panel',
      xtype: 'playerview',
    
      requires: [
          'Score.view.PlayerInfoPanel',
          'Score.view.GameInfoPanel'
      ],
    
      config: {
          title: 'Player Info',
          iconCls: 'user',
          layout: 'vbox',
          scrollable: true,
    
          items: [
              {
                  docked: 'top',
                  xtype: 'toolbar',
                  id: 'toolbarId',
                  title: 'Player Info'
              },
              {
                  xtype: 'playerinfo',
                  id: 'currentPlayerInfoId',
                  flex: 1,
                  scrollable: false
              },
              {
                  xtype: 'gameinfo',
                  id: 'currentGameInfoId',
                  flex: 2,
                  scrollable: false
              }
           ]
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been struggling with this problem for a while now. I have a
I have been struggling with this problem for a few days now and I
I have been struggling with this for a while now. I have a Master
I've been stuck on this problem for a while now and have tried my
Okay, I've been struggling with this for a while now. I have a standard
I've been struggling with Zend_Navigation all weekend, and now I have another problem, which
I have been struggling to find a solution to this problem. In my code,
I have this problem I've been trying to tackle for a while. I have
I have been struggling with a problem for a while and so far have
I've been struggling with this issue for a while now, and none of the

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.