dynamic grid or dynamic header

asked 2013-10-10 01:50:28 +0800

daovallec gravatar image daovallec
11 2

I need something like: postimg. org/image/lbakheyrh/

I need do a query in my database in a table with my servers, and in other table i have my platforms that has a relations with the table servers many to one, then one server has many platforms.

I need to do something like the image, create a grid in zk and with the header my servers, and sub header or sub column os each server the platforms that has each server. Later i need a form that if i add a type, name and date, save it in my database in the platform that i am located and in the server that i am located.

i am trying with something like:

zkfiddle .org/sample/1rhr8cd/18-Dynamic-Listbox-Columns#source-1

The problem is that i can not relate the server with platforms in my menu, and add a grid with a form in each column, of my platform,

And i am intenting with a grid in columns @load(vm.server), and i do not have idea how do it, i am trying by days, but i do not have any idea.

If somebody can help me.


delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-15 12:02:46 +0800

ajaidka gravatar image ajaidka
196 4

I created dynamic headers for one of my clients, Please have look at sample code

<grid id="spreadReport" model="@load(vm.reports) ">

<columns children="@load(vm.listOfheader)">
<template name="children" var="child">
    <column label="@load(child)"/>

<template name="model" var="row">

    <cell forEach="${row.reports}">
        <!-- Here fetch and display report for each cell -->

</template> </grid>

Also for multilevel header, you can go for auxhead

Best of luck A Jaidka

link publish delete flag offensive 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

1 follower



Asked: 2013-10-10 01:50:28 +0800

Seen: 25 times

Last updated: Oct 15 '13

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