hi guys,
how can I clear all the value when I click the add new row in datagrid every values in form and clear datagrid also?
Am having a trouble clearing the rows in datagrid here is my code
function newUser(){
$('#dlg').dialog('open').dialog({
title: 'New Vet',
width: 1344,
height: 635,
closed: false,
cache: false,
modal: true,
resizable: true
});
$('#fm').form('clear');
$('#dg2').datagrid('reload');
url1 = 'save-vet.html';
}
thank you very much