0

Double template in one Grid

asked 2014-08-03 07:08:38 +0800

elmetni gravatar image elmetni
145 7

updated 2014-08-03 07:30:05 +0800

hello

i m working on a ZK project , what i need to do is to fill a grid with 2 Lists from my VM , load the first list and until the end of it , and then load the other one

i dont know if this could be possible with ZK ?

if it s please provide me with a working simple example , and thank you so much

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-08-03 08:57:32 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

updated 2014-08-03 08:58:10 +0800

If I understand well something like this :

<grid>
    <rows>
        <row>
            <listbox>
                <listitem >
                   <listcell>
                     <label value="test"/>
                   </listcell>
                </listitem>
            </listbox>
        </row>
        <row>
            <listbox>
                <listitem >
                    <listcell>
                        <label value="test2"/>
                    </listcell>
                </listitem>
            </listbox>
        </row>
    </rows>
</grid>

Greetz chill.

link publish delete flag offensive edit

Comments

the problem is , i have 2 lists in my VM , and i have to do 2 loops to display those 2 lists in same Grid

elmetni ( 2014-08-03 16:53:56 +0800 )edit

each listbox has his model, 1 loop for each list is enough (in the listbox you do model="@load(vm.list1)")

chillworld ( 2014-08-03 20:07:30 +0800 )edit

uh i got it now , thx :)

elmetni ( 2014-08-03 20:24:34 +0800 )edit
Your answer
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

Follow
1 follower

RSS

Stats

Asked: 2014-08-03 07:08:38 +0800

Seen: 10 times

Last updated: Aug 03 '14

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