Get KoolPHP UI with 30% OFF!

2 expad Columns each one with his own detailGrid.

Abraham
hi there..
is this possible ??
in a recent metting with my bos wee came with this idea seeing it would be cool to have in our app 2 expand colums each one showing his own detail grid.. it would fit wornderfully for our needs..
i have seen the
$grid->MasterTable->AddDetailTable($childs_1);

but in GridExpandDetailColumn Class I cant find a DetaildTable Index to be expanded...
so if MasterTable->AddDetailTable is an arry... that could be achieved.. if its possible how?.
Thanks a lot for your support guys.
Posted Aug 31, 2015 Kool
Peter
Hi Abraham,
Remember you need to add relation between two tables. In this hierachy example, we specify the relation like this:
...
$table_order->AddRelationField("customerNumber","customerNumber");
...
$grid->MasterTable->AddDetailTable($table_order);

This will bind the customerNumber field in detail table to customerNumber field in parent table
Hope that helps.
Posted Sep 1, 2015 , edited Sep 1, 2015 Kool -
Abraham
Hi there Peter. i have already used this and works fine but what i need is somthing more like..
$detail1->AddRelationField("costumerNumber","costumerNumber");
$detail2->AddRelationField("costumerNumber","costumerNumber");
$grid->MasterTable->AddDetailTable($detail1);
$grid->MasterTable->AddDetailTable($detail2);

then i need to have 2 expandDetailColumns for the $grid, the first one shulould expand $detail1 then second one should expand $detail2..
is that possible ??..
Posted Sep 2, 2015 , edited Sep 2, 2015 Kool
Peter
In this case, you follow exactly the same our Three Levels Hierachy example.
Posted Sep 3, 2015 , edited Sep 3, 2015 Kool
Abraham
I guess im not explaining my self.. give me a couple of hours and i will attach a image mock up of my needs..
Posted Sep 3, 2015 Kool