Couldn't find any example of sharing.
I'm wondering how to change the height of the expandable row for any CLV entry.
I'm wondering how to change the height of the expandable row for any CLV entry.
Why don't you upload your project to the forum. Perhaps some one will get hold of it and help you with it if they experienced similar situation.loading 1000 records takes more than 5 seconds
Are you saying you want to display items under any given panel when expanded, then auto close it when another panel is clicked. See image below. If that is the case I can upload a B4J project to illustrate that to give you ideas for your real project, using Lazy Loading in xCLV ( not PCLV which not essential as Erel said). If you are thinking differently, then wait till someone else tackles your problem.but I need to set a different ExpandedHeight depending on the parent row.
I do not understand what you want to saybut I need to set a different ExpandedHeight depending on the parent row.
Yes, but the time for 10000 entries should be comparable to my example.Are you saying you want to display items under any given panel when expanded, then auto close it when another panel is clicked.
I want that in my example, for each record, it would be possible to display several elements in height in the drop-down field (for example, Label). Their number depends on the parent row.I do not understand what you want to say
I have created a B4J project based on yours with 10000 records and takes 10 ms to load all. It has PCLV and lazy loading. I also added a list of items where each list item is loaded onto a label to make the child views for each panel clicked. I am using the same list for each record. When you click a panel title, the pane expands and displays the 11 items in the list. See screenshot. It needs some tweaking. Other than that it works. If you want to play with it, I can post it. If not, good luck.I want that in my example, for each record, it would be possible to display several elements in height in the drop-down field
Of course I want! Publish please!Other than that it works. If you want to play with it, I can post it.
Here it is. I hope it helps some. If you improve it, which you certainly will, share the code with the rest. If it does not help, just toss it. If you ask and I do not answer, then it means I have no answer and someone else may possibly help.Of course I want! Publish please!
Just somethink real quick. Of course to do it the proper way is to have a database table that you extract the distinct owners and use a query to select each owner's animals from another query. Requires a little work on your part.Maharis, thank you so much!
An example is almost what I needed. I explain:
Imagine that Item #1, Item #2, and so on, are the owners of the animals on your list. Each of them may be different. One has only a dog, another has a cat, the third has everything. So I want to see what animals each owner has?
Private DataMain As List 'in globals , use DataMain instead of Data
Data.AddAll(Array As String("Dog", "Cat", "Giraffe", "Bird", "Lion", "Hippopotamus", "Camel", "Tiger", "Elephant" _
, "Gazelle", "Cheetah"))
DataMain.AddAll(Array As String("Dog", "Cat", "Giraffe", "Bird", "Lion", "Hippopotamus", "Camel", "Tiger", "Elephant" _
, "Gazelle", "Cheetah"))
Private Sub clv1_VisibleRangeChanged (FirstIndex As Int, LastIndex As Int)
Dim Data As List
Data.Initialize
Dim x As Int = Rnd(0, DataMain.Size) 'use a different number of animals for every title.
For k=x To DataMain.Size-1
Data.Add(DataMain.Get(k))
Next
see:Maharis, unfortunately, the height of the expanded panel does not change according to the number of animals.
I have read this before.see: