EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aswzen on April 07, 2016, 12:51:24 AM



Title: How to reload a row? not the entire table
Post by: aswzen on April 07, 2016, 12:51:24 AM
Hello again

can we reload a datagrid row by index? if it possible how to do it?
i just want reload a row not the entire datagrid

Thank you in advance

* if in extJs we just use "grid.getView().refreshRow(row_index);" and that simple


Title: Re: How to reload a row? not the entire table
Post by: Pierre on April 07, 2016, 06:59:24 AM
see "updateRow" in the documentation

Code:
$('#dg').datagrid('updateRow',{
index: 2,
row: {
name: 'new name',
note: 'new note message'
}
});


Title: Re: How to reload a row? not the entire table
Post by: aswzen on April 07, 2016, 11:31:41 PM
i mean refresh the row by data on the server..


Title: Re: How to reload a row? not the entire table
Post by: bakkers on June 08, 2016, 05:17:19 AM
I need the same thing, did you find at solution?


Title: Re: How to reload a row? not the entire table
Post by: battlezad on June 14, 2016, 10:57:56 PM
"updateRow" is your solution.

$('#dg').datagrid('updateRow',{
   index: 2,
   row: {
      name: 'new name',
      note: 'new note message'
   }
});

index is your row's index and row contains new data.