⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

synchronize two grid



peterf
  • profile picture
  • Member

Posted 14 March 2013 - 16:59 PM

Is it possible to synchronize two grid on same table on database?

It is for LARGE table, with MANY field, i would split in two grid, to visualize ALL field in one screen.

First grid, 1...n fields

second grid, n+1....m fields

both on same recordset.

Thank you

 


davidoster
  • profile picture
  • Member

Posted 19 March 2013 - 15:24 PM

I suppose you could do it by using the columns (and fields) functions.

But I don't know what happens when you add or edit in terms of rules and mandatory fields.


peterf
  • profile picture
  • Member

Posted 23 March 2013 - 08:40 AM

But how to instance TWO grid in same web-page?


davidoster
  • profile picture
  • Member

Posted 25 March 2013 - 14:14 PM

$crud1 = new grocery_CRUD();

....

 

$crud2 = new grocery_CRUD();

....

 

$output1 = $crud1->render();

$output2 = $crud2->render();

 

$this->_example_output($output1);

$this->_example_output($output2);


peterf
  • profile picture
  • Member

Posted 25 March 2013 - 16:52 PM

Thank you.

And you know how to, if user click on one column to sort the grid, replicate this behaviour with other grid?

Thank you.