Page 1 of 2

ListView subitems not showing in Tile view

Posted: Sun Apr 15, 2018 10:06 am
by MDinice
To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build: PowerShell Studio 2018 v5.5.150
32 or 64 bit version of product: 64 bit
Operating system: Win 10
32 or 64 bit OS: 64 bit

*** Please add details and screenshots as needed below. ***
ListView sub items don't seem to be showing in Tile view. sample form attached
DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

Re: ListView subitems not showing in Tile view

Posted: Sun Apr 15, 2018 11:51 am
by Alexander Riedel
[Topic moved by moderator]

Re: ListView subitems not showing in Tile view

Posted: Sun Apr 15, 2018 12:11 pm
by jvierra
It appears you may have posted the wrong form as this form has no data and appears to have a random array of panels and other controls.

Post just a simple ListView showing the issue you wish help with.

Attached is an example of some of the ways to use a ListView

Re: ListView subitems not showing in Tile view

Posted: Tue Apr 17, 2018 6:12 pm
by MDinice
sorry about that this should have items and sub-items

Re: ListView subitems not showing in Tile view

Posted: Tue Apr 17, 2018 6:18 pm
by jvierra
No code and it does not clear up what you are asking. What is the question?

Re: ListView subitems not showing in Tile view

Posted: Tue Apr 17, 2018 6:32 pm
by MDinice
Are the items showing in the listview when you run the form? the items were built with the groups and items collection in the right panel in design mode. so there is no extra code and their shouldn't have to be. each item in the items collection has a single sub item that should be but is not showing. I would think those sub items should also be showing in design view.

Capture.PNG
Capture.PNG (84.14 KiB) Viewed 1103 times

Re: ListView subitems not showing in Tile view

Posted: Tue Apr 17, 2018 7:05 pm
by jvierra
The form you posted has NO code at all. It is just a form with a control.
Defining groups and items does not create a list. It just creates the template.

Re: ListView subitems not showing in Tile view

Posted: Tue Apr 17, 2018 7:27 pm
by jvierra
Without columns you will not see subitems. In "Tile" view you will not see subitems. Add columns and switch to detail view to see all items and subitems.

Re: ListView subitems not showing in Tile view

Posted: Tue Apr 17, 2018 7:46 pm
by MDinice
Unfortunately i'm not looking to use detail view. i'm trying to make grouped buttons for a lack of a better description. and this right out of Sapiens spotlight on the list view
Capture2.PNG
Capture2.PNG (36.24 KiB) Viewed 1089 times
It also states later on that if more then one sub-item exists only the first in the collection will display this is why each item only has one sub-item. As you can see in my initial screen shot the large image and main item show this is why I was reporting the first sub-item not showing as a possible bug. I reported a treeview bug a month or so back that they acknowledged and fixed so I thought this might also be an issue. That is also why i posted in the powershell studio forum and not the gui. The article mentions the value being ignored in OS's earlier then XP so I was assuming it would work in OS's later then XP. If that is a wrong assumption I apologize. I do appreciate and am grateful for the quick responses.

Re: ListView subitems not showing in Tile view

Posted: Tue Apr 17, 2018 8:46 pm
by jvierra
The ListView is a very unmanageable control and I do not have any examples that do what you want. The behavior of the control is also very flakey if you mix different modes.

Tomorrow I will try to put together an example that may be helpful. I, personally, avoid the control because it seldom does what I need. Using a ListView as a menu can be done but it will not work as expected. As soon as you deviate from any example it will change modes and leave you confused.