This topic contains 2 replies, has 2 voices, and was last updated by thinh2010 6 years, 9 months ago.
- Topic
Hi,
I want to make a datagrid refresh after submit a form in dialog.
Here is my twig file to call the dialog:
123456789101112131415161718192021222324252627282930313233343536{% import 'OroDataGridBundle::macros.html.twig' as dataGrid %}{% import 'OroUIBundle::macros.html.twig' as UI %}<div class="widget-content">{% if resource_granted('phs_school_payment_status_create') %}<div class="navigation clearfix navbar-extra navbar-extra-right"><div class="row"><div class="pull-right">{{ UI.clientLink({'dataUrl': path('phs_school_payment_status_create', {'id': entity.id}),'label': ' + Add payment','aCss': 'no-hash btn btn-primary','id': 'btn-export-evaluation','dataId': entity.id,'successMessage': 'Payment added successful!','widget' : {'type' : 'dialog','multiple' : false,'options' : {'alias': 'studentpayments_dialog','stateEnabled': true,'dialogOptions' : {'title' : 'Add payment','allowMaximize': false,'allowMinimize': false,'width': 600}}}}) }}</div></div></div>{% endif %}{{ dataGrid.renderGrid('phs-school-student-payments-grid', {id: entity.id}) }}</div>This code display the list of payments of student. And a ‘Add payment’ button. After add a payment, I want to refresh a payment list.
Do anyone have ideal for this?
Thanks
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.