# dynamic grid or dynamic header

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.

Thanks

delete retag edit

Sort by » oldest newest most voted

ajaidka
196 4

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

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

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

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


</template> </grid>

Best of luck A Jaidka

[hide preview]