Title: Structure row
Post by: Ariovaldo on March 21, 2023, 10:14:17 AM
Hello Where can I find documentation on the row structure of the datagrid, and other components? the table field name comes in string and I need to get the row value // ========================================================================================== function Retorno() { // ==========================================================================================
var cCod = sessionStorage.getItem("cVar1" ); var cDes = sessionStorage.getItem("cVar2" ); var cField1 = sessionStorage.getItem("cField1"); var cField2 = sessionStorage.getItem("cField2"); var row = $('#dg').datagrid('getSelected');
if (row){ $(cCod).textbox('setValue', row[cField1] ); $(cDes).textbox('setValue', row[cField2] );
$('#dlg').dialog('close'); } else { $.messager.alert('Sisrev-Web','Selecione um registro','info'); } }
Tanks,l Ari
Title: Re: Structure row
Post by: jarry on March 26, 2023, 07:40:04 PM
The row is a plain javascript object. Its fields depend on the data bound on the component.
|