I have a page with a MVCGrid calling a modal form from external page:
$g1=$p->add('MVCGrid');
$g1->setModel('Student');
$g1->addButton('Add New')
->js('click')
->univ()
->dialogURL('Add New', $this->api->getDestinationURL('newStudent'));
The external page has the form and works fine:
$f=$page->add('MVCForm');
$f->setModel('Student');
if($f->isSubmitted()){
$f->update();
$f->js()->univ()->closeDialog()->execute();
}
But after a new Student is added, the grid is not updated, how do I update it? Is this this the right way to do this? (I'm trying to have a similar function that the CRUD but only for Create.)