Grid whith dynamic columns

asked 2017-12-07 16:25:14 +0800

Radoslav86 gravatar image Radoslav86
13 3

updated 2017-12-07 16:27:24 +0800

Hi, I want to do something like a bus timetable. my idea is the following, I have a Map<integer, list<date="">> resutsByHour = new HashMap<>() with the Hour for the key and for value is date when the bus is arrived at the stop. i want to show it as a grid, but if i have for 6 o'clock 4 stops - 6:10,6:35,6:40,6:55 and for seven o'clock only 2 - 7:10,7:40 i what my columns to be 4.

<grid model="@load(vm.resutsByHour)" >
    <columns children="@load(vm.maxColumnList)">

        <template name="children" var="item">
            <column label="value"></column>

    <template name="model" var="date">
        <row children="@load(date)">
            <template name = "children" var="date" >
                <label  value="value"></label>

this is my zul code i whant something like this https://ibb.co/euvA0G (img)

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2017-12-07 16:25:14 +0800

Seen: 13 times

Last updated: Dec 07 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More