I wanna ask about how to change the input name in the appendgrid
as on the image above i have the select input as "Sub Program" which the name is "tblAppendGrid_subprogram_1" and below the input the name of the input field is "tblAppendGrid_subprogram_2".
With the case above i wanna ask about how to change the names of the input fields into "tblAppendGrid_subprogram[]"
some codes of the Appendgrid below
$(function() {
$('#tblAppendGrid').appendGrid({
caption: 'Detail Penerimaan dana',
maxRowsAllowed: 3,
initRows: 1,
columns: [
{ name: 'subprogram', display: 'Sub Program', type: 'select',
ctrlOptions:
<?php echo $subprogram;?>
,ctrlAttr: { maxlength: 100 }, ctrlCss: { width: '100%'},ctrlClass: 'form-control' },
{ name: 'sumberdana', display: 'Sumber Dana', type: 'select',
ctrlOptions:
<?php echo $sumberdana;?>
,ctrlAttr: { maxlength: 100 }, ctrlCss: { width: '100%'},ctrlClass: 'form-control' } ,
{ name: 'kategori', display: 'Kategori', type: 'select',
ctrlOptions:
<?php echo $kategori;?>
,ctrlAttr: { maxlength: 100 }, ctrlCss: { width: '100%'},ctrlClass: 'form-control' },
{ name: 'jumlah', display: 'Jumlah',ctrlClass: 'form-control' },
{ name: 'catatan', display: 'Catatan',ctrlClass: 'form-control' }
],
hideButtons: { moveUp: true, moveDown: true }
});
});
Thank you in advance
Aucun commentaire:
Enregistrer un commentaire