EasyUI Forum
September 14, 2025, 01:50:53 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to reload a row? not the entire table  (Read 13835 times)
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« 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
« Last Edit: April 07, 2016, 12:53:39 AM by aswzen » Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #1 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'
}
});
Logged
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #2 on: April 07, 2016, 11:31:41 PM »

i mean refresh the row by data on the server..
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
bakkers
Newbie
*
Posts: 21


View Profile Email
« Reply #3 on: June 08, 2016, 05:17:19 AM »

I need the same thing, did you find at solution?
Logged
battlezad
Newbie
*
Posts: 44


View Profile
« Reply #4 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!