ListView with GridListLayout will not display items

I can easily create a ListView that displays its items.

The following XML code:


    

And here's the QML:

            ListView {
                dataModel: XmlDataModel {
                    source: "asset:///test.xml"
                }

                listItemComponents: [
                    ListItemComponent {
                        type: "header"
                        Header {
                            title: ListItemData.title
                        }
                    },
                    ListItemComponent {
                        type: "item"
                        Label {
                            text: ListItemData.name
                        }
                    }
                ]
            }

The result looks like this:

But what I really want are the items to display in a grid. To do this, I put the ListView layout property to a GridListLayout:

                layout: GridListLayout {
                }

When I do that, it shows more elements, only the headers:

What I am doing wrong?

In the end I tried to get this working using a custom LitemItemProvider that uses images for the elements, but even once, it would display only the headers.  So I simplified my example as much as I can above to try to identify the problem.  I don't know how to do the simple example.  I am able to get my original code works fine even with the GridListLayout if I do not activate the grouping - as soon as I activate the grouping (so that the data has headers and elements), it starts to behave like that.

The display of the grid is not compatible with the Group?  The application of native images only grouping with a grid view, and I am trying to imitate that.  Super confused.

You must set headerMode

https://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__gridlistlayout.html#propert...

Tags: BlackBerry Developers

Similar Questions

  • Firefox will not display on the screen even though with Process Explorer, I see active Firefox.exe but no CPU usage

    I use Firefox as default browser v10.0.2 on Dell XPS8300 Intel Core i5 and Windows 7 Ultimate and Compaq Presario CQ57 IO IO Intel Core i3 and Windows 7 Home. More frequently on the (approximately 90% of attempts) that Dell (50% of attempts) Firefox will not display on the screen when I click the icon. Cannot display other programs when it happens. I expressly say display because I believe that Firefox has started. To work around the problem, I installed Process Explorer on both machines and launch this program first, then click on the Firefox icon. When the problem occurs I see process Firefox.exe in the list of processes; some CPU consumed but, then, no CPU activity. If I click on the Firefox icon, yet another process opens in the list of processes, but with the same answer - some consumed CPU and then no CPU activity. If I have 2 processes running and kill the process from the 1st, the 2nd poster and then everything is normal. If I do not open it treat a 2nd, but kill the 1st process then click the Firefox Firefox is displayed and all then is normal. This problem has occurred since the original on the two new machines installation. I have updated the video drivers on both computers.

    OK, let's see if we can solve this problem and make it work for you!

    First of all, if you start Firefox in safe mode (restart your computer first, then when you open Firefox, hold down the SHIFT key) it starts more reliable? This is usually caused by a defective module. If this does not help, then restart Firefox, go to the Firefox, then add-ons button and disable your extensions one by one until you find the troublemaker.

    Also, try to update to Firefox 11, it has several bug fixes that might make life easier here.

    Just as a few troubleshooting steps base to ensure that we have all the bases covered,
    Run all Windows updates, install all required service packs, etc.

    Update all of your plugins (Flash, Java, etc.): http://www.mozilla.org/plugincheck/.

    Download and install MalwareBytes Anti-Malware, run a full scan. http://www.malwarebytes.org/. This check allows that there is no virus on your computer, causing problems. You can uninstall this program after having cleaned the infections.

  • "Non-rectangular objects will not display correctly when you export with the help of CSS."

    I use Ind CC 2014 export a document to an epub recomposable.  The document contains a picture .ai.  The image export correctly in some parts of the the.epub, but not others, when it is deformed. There is a warning on export: "Non-rectangular objects will not display correctly when you export using CSS."  Any suggestion is appreciated.

    Hello

    For these objects, the best option is to 'rasterize container"to preserve appearance of the page layout setting in the Options of the Export Object dialog box and then export to EPUB recomposable.

    Kind regards

    POOJA

  • HP dv6700 monitor will not display.

    I see other posts about this problem in 2011 without solution. Dv6700 monitor will not display or display a go to sleep avter a few moments.

    Hi @WoodyJr9,

    Welcome to the Forums of HP Support!

    I understand that you are having problems with your screen either vacuum or go to sleep after a few seconds.  I'm happy to help you with this.

    Please see the following, because it can be the starting point with the problem you mention.
    Solve problems with sleep and the night before extended Modes (Windows Vista)

    If this does not help, then take a look at these:

    The display is Dim during or after the boot or startup

    Troubleshooting of black screens with no start-up or start-up error message
    Diagnose a display LCD (LCD) for damage

    Another thing you can try is updating drivers, if you don't have already done.

    HP Pavilion dv6700 CTO Entertainment Notebook PC Drivers

    Please let me know if this was helpful.

  • Vista will not display description of the file on mouse over. File name, Type, size, and Date modified see the upward, but no description.

    Vista will not display description of the file on mouse over. When I mouse over, a pop-up window displays showing: file name, Type, size and Date of change, however, it does not show the description of the file.

    So, for example if I have 5 files on different types of screw - the description tells me that the size of the screws. IE. 1.5 mm or 1. 8 mm.

    Update: try to get the description of the file displayed messing around in the file properties, now out of 10 records, only 2 includes the name of the file in the mice on the pop-up window. So now what lack us, it's the file name and the Description file.
    Help, please...

    Description of the file in as long as this is not one of the available variables, which can be shown with ToolTips - but there are others who could easily serve the same purpose. Here are the options:

    Consulted
    Attributes
    Created
    DocAuthor
    DocComments
    DocSubject
    DocTitle
    Modified
    Name
    Size
    Type
    To write

    Here is an article on how to change what is shown. http://www.ghacks.net/2008/02/10/customize-windows-explorer-tooltips/ . It is to change the registry, make sure you so first back it up before doing anything so that you can recover in case you make a mistake (or do the right thing, but it does not work as expected). http://www.instant-registry-fixes.org/how-to-backup-windows-vista-registry/ .

    I hope this helps.

    Good luck! Lorien - MCSA/MCSE/network + / A +.

  • last name in my contact list is not displayed. It's as if the list is long and will not display the last of them.

    Last name in my contact list is not displayed. It's as if the list is long and will not display the last of them. Is there anyway to fix this?

    Hello

    1. are you referring to e-mail contacts or Windows contacts?
    2. who is your provider of mail service?
    3. using any e-mail client?
    4. don't you make changes to the computer before the show?

    Suggestions for a question on the help forums
    http://support.Microsoft.com/kb/555375

    The information is not sufficient to answer your question. Please provide us with more information to answer your question better.

  • Photoshop CC 2015 will not display the RAW files

    I installed Photoshop on my new computer and it will not display the RAW file when I go to change. Instead, it shows a rectangle cream colored with a dark blue background. If I click Open a picture, it will open it for further editing and I can see the image once again, but it will not display in the initial screen. I have version 9.4 of the camera RAW plugin and the computer is a HP Envy with Windows 10 if that helps. See screenshot for reference.

    Can someone tell me how to solve this problem?

    Untitled.png

    Click on Photoshop (Mac) or edit (Windows) > Preferences > Camera Raw

    Uncheck the box use Graphics Processor.

  • Will not display labels accordions - SECOND POST

    Hi all

    When I create a SWF with a part of the accordion, it works fine. When I import the swf in another film will not display labels. I also tried resetting the label using myAccordion.getHeaderAt (index) .label = "Blah"; or createChild(); without success.

    Am I missing something fundamental?


    Dave

    I finally found the problem with this - I load me the film in a container element that has been hidden. I pulled it out of the mask group and it worked fine.

    Thanks for your help Urami :-)

  • My Muse site will not display the customized html images that work in chrome?

    My Muse site will not display the customized html images that work in chrome? Here's my url www.simplesites.com.au.

    Works fine here on Linux.

    Note that the uploads has 'ads' in name and come from simplesites.net.au, so be sure that content blockers not get triggered.

  • Satellite Pro L450D - 12 X will not DISPLAY

    Battery is charged and good. The power adapter is good.

    The machine will not DISPLAY. The screen remains black and no beep. The power, & battery LEDS are green. The cooling fan is heard for a short time after you press the power button.

    I removed the RAM & HDD but the machine will show still not any sign of life (expect short noise from the CPU fan)

    I tried the no battery, no power, hold the power button for 30 seconds without success tour.

    I guess that the motherboard is dead. Has anyone else had the same symptoms? or can anyone suggest a repair?

    > I guess that the motherboard is dead. Has anyone else had the same symptoms? or can anyone suggest a repair?

    Indeed, it looks like a serious hardware problem possibly motherboard or maybe the CPU what to say to solve this problem, you must replace the parts and it will be a costly affair if the guarantee is not valid.

  • I had a paper get stuck in my printer 1310 series. I disabled the jam but it is still showing as a paper jam and will not display 6 documents in the queue

    I had a paper get stuck in my printer 1310 series. I disabled the jam but it is still showing as a paper jam and will not display 6 documents in the queue

    If it still shows paper jam and you know that there is no paper, just turn it works, and it should realize that there is no paper.

  • Sidebar calendar gadget will not display the months or days - my Recycle Bin icon is not on my desk

    Original title: Calendar Sidebar Gadget / recycle Logo

    I added calendar Sidebar Gadget - it worked very well for years and suddenly the firm timetable.  It will not display the months or days and I can not open the pages.  That's happened?

    Recycle the icon was on the desk, but disappeared and has left a space on the desktop.  How to get back in place on the desktop?
    I hope someone can help.  Thank you.   Jeanne

    Hi Jeanne,

    Take a look at the answer provided in nets below the link to solve your problem in calendar view:
    My Microsoft calendar gadget is displays a blank page, rather than the current date / month calendar

    Then try to use the Microsoft Fix It provided in the link below to get the trash on the desktop:
    How can I make the Recycle Bin on my desktop in Windows Vista or Windows XP?

    Hope that helps.

  • will not display list of program when I hit start menu

    When I hit the computer button all programs will not display any installed programs, weird!

    http://WindowsXP.MVPs.org/allprograms.htm
    When you click the menu programs on the Start Menu, it can show (empty)
    Nothing happens when you click on all programs on the Start Menu
    Not all the shortcuts are displayed

  • My lexmark X 7550 printer will not display when uac is enabled.

    Original title: user account problems

    My lexmark printer will not display when uac is enabled. I have a lexmark X 7550. Someone has any ideas

    Hello

    1. what happens when you try to print the User Account Control (UAC) is enabled? You get the error message? After return the correct error message if applicable.
    2. you are connected to a user administrator account?
    3. don't you make changes on the computer before this problem?

    I suggest you install the latest printer driver and check.
    http://support.Lexmark.com/index?locale=en&ProductCode=LEXMARK_X7550&UserLocale=en_US&segment=download&OS=WINDOWS_VISTA&page=downloadsList&oslocale=en_US

  • My laptop Sony VAIO with Vista will not connect and stay connected to my wireless internet.

    My laptop Sony VAIO with Vista will not connect and stay connected to my wireless internet.  All other laptops in the House are perfectly.  Internet disconnects, says local only, then reconnects constantly making internet hard work.

    Hi Tinkerbellfancolorado,

    1. When is this last work fine?
    2. Do you receive an error message or error codes?
    3. Recent changes on the computer?

    There could be several causes for this problem.

    Try starting with these methods.

    Method 1

    Step 1

    1. Open Network Diagnostics by right-clicking the network icon in the notification area, and then click diagnose and repair.
    2. Make sure that all cables are connected (for example, make sure that your modem is connected to a working jack or cable phone connection, either directly or through a router).
    3. Reset your modem and router. Remove the power cord from the modem or router, wait at least 10 seconds, then plug in the modem and/or router back.

    Step 2

    Another reason may be windows disable your network adapter to save power. Turn off the power saving option in the properties of the network (wired network only cards) card:

    1. Open network connections by clicking the Start button, clicking Control Panel, clicking network and Internet, click network and sharing Center, and then clicking manage network connections.
    2. Right-click on the connection and then click Properties. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    3. On the Networking tab, click Configure.
    4. On the power management tab, clear the allow the computer to turn off this device to save power option, and then click OK.

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-Internet-connection-problems

    Method 2

    Temporarily disable the firewall, and check the status.

    NOTE: To re-enable the firewall after check you the status. If you are connected to the Internet or a network during the time that your /firewall antivirus software is disabled, your computer is vulnerable to attacks.

    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-Windows-Firewall-on-or-off

    Hope that was heloful.

    Bindu S - Microsoft Support
    Visit our Microsoft answers feedback Forum and let us know what you think

Maybe you are looking for

  • Satellite A100-570: utility of battery exchange program does not load page

    I read in the latest issue of computeractive that some laptop batteries dysfunction and mine was one of those mentioned.I downloaded from Toshiba Web site software piece to check the battery, and in fact he told me that my battery was affected. I wan

  • Microsoft Flight does not work!

    MicroSoft Flight cannot run because the version of the shader of my video card does not meet the minimum requirements? Processor: AMD Turion X 2 32-bit Windows Vista Series of graphics card: ATI Radeon X 1200 .. what I do

  • I am looking for the correct drivers to my Hot Spot AT & T 4g Elivate Sierra works

    I have downloaded drivers updated on the website of Sierra and still can not get the Elivate to work properly. I have a limited connection. Does anyone know how to solve this problem. I'm under Windows Vista Service Pac 2

  • HP probook 4540 s heating problem.

    I don't know that it may sound like a silly question. But what's really under the left hand side of the touch pad of my probook 4540 s. This area just instantly heats up during light as watch movies or navigation. I' vs. 2 GB Radeon graphic and when

  • Default programs has changed to Internet explore

    I deleted a word file on my computer.deleted of my bin.i of recycling then necessary to find, and when a box pops up asking me if I wanted to Try and get it back by using Internet explorer, I said yes! All programs I then changed to internet explore!