[Gambas-user] Webform and TreeView
Rolf-Werner Eilert
rwe-sse at osnanet.de
Wed Sep 25 13:12:46 CEST 2019
Am 25.09.19 um 13:02 schrieb Benoît Minisini:
> Le 25/09/2019 à 12:43, Rolf-Werner Eilert a écrit :
>> There is no TreeView for Webforms.
>>
>> In the original Gambas app I want to mimic here, a TreeView is a
>> substantial part of the program. It resembles this Explorer like view
>> with a TreeView on the left and data on the right. The TreeView has 4
>> levels:
>>
>> Root1
>> Year1
>> Year2
>> Filter1
>> Filter2
>> Name1
>> Name2
>> Name3
>> Filter3
>> Year3
>>
>> Root2
>>
>> I do not feel like building a complete TreeView for HTML myself. How
>> would you implement this for web use? My first thought was using a
>> list, but there is no ListView either.
>>
>> So... a TableView as a list, and doubleclick to dive into a branch,
>> the program adding the necessary items at that position to "open" the
>> branch?
>>
>> Or do have a simpler idea?
>>
>> Regards
>> Rolf
>>
>
> Yep, it's one of the controls to implement. The difficulty is chosing
> between loading the entire treeview contents in the browser, or only the
> visible items...
>
> Regards,
>
Never all the contents at once, that's for sure. In my program, I load
the contents of level 2 (under the root entries) at program start, so
you have a list of years, and the rest when the user clicks on one of
the Year entries (and for this year only).
Regards
Rolf
More information about the User
mailing list