EasyUI Forum
September 14, 2025, 01:04:44 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Update a particular cell in datagrid  (Read 9958 times)
cucux
Newbie
*
Posts: 5


View Profile Email
« on: July 30, 2014, 12:06:29 AM »

Hello all,

I want to update a particular cell in datagrid based on a selection from an outside combobox.

I want something like this:

rows['i']['j']('setValue', val);

val is the combobox text

Can this be done?
I did not found an example.

Best regards,
Catalin
« Last Edit: July 30, 2014, 12:32:24 AM by cucux » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: July 30, 2014, 02:13:07 AM »

Please call 'updateRow' method to update a specified cell.
Code:
$('#dg').datagrid('updateRow',{
  index: index,
  row:{
    field: val
  }
});
Logged
cucux
Newbie
*
Posts: 5


View Profile Email
« Reply #2 on: July 30, 2014, 02:23:18 AM »

Thank you!

Work like charm.

Best regards,
Catalin
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!