EasyUI Forum
May 03, 2024, 03:07:18 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: 关于easyUI的datagrid修改某列显示值的问题  (Read 38134 times)
ichenkj
Newbie
*
Posts: 3


View Profile Email
« on: September 03, 2014, 07:04:55 PM »

hi!(Sorry. I will only this one, the other I said Chinese.)
大家好!
今天我在开发的时候碰到一个问题,就是不知道怎么在不刷新列表的情况修改某一行中某一列的值。
大概的效果是这样的:鼠标选择某行,触发onSelect事件,发送请求给服务器修改状态,返回修改成功的状态标识。前端根据结果修改该行的标题(去掉“【未读】”,把字体设置为不加粗)。
附件的图片有说明要实现的效果。
« Last Edit: September 03, 2014, 08:27:55 PM by ichenkj » Logged
ichenkj
Newbie
*
Posts: 3


View Profile Email
« Reply #1 on: September 04, 2014, 01:11:22 AM »

Translate:

Hello everyone.
I have a problem in the development of today, but I don't know how to modify the value for a column of a row in the not refresh the list of.
General effect is this: the mouse to choose a line, the onSelect event fires, sends a request to the server to modify the state, return to modify the status identification success. The front end is modified according to the result of the line (remove the title "[unread]", the font is not bold).
The attached pictures illustrate the effect to be achieved.
Logged
hjzhbb7758
Jr. Member
**
Posts: 84


View Profile Email
« Reply #2 on: September 04, 2014, 03:17:47 AM »

Translate:

Hello everyone.
I have a problem in the development of today, but I don't know how to modify the value for a column of a row in the not refresh the list of.
General effect is this: the mouse to choose a line, the onSelect event fires, sends a request to the server to modify the state, return to modify the status identification success. The front end is modified according to the result of the line (remove the title "[unread]", the font is not bold).
The attached pictures illustrate the effect to be achieved.

api datagrid updateRow 试试
Logged
ichenkj
Newbie
*
Posts: 3


View Profile Email
« Reply #3 on: September 10, 2014, 08:28:02 AM »

谢谢楼上的解答,问题确实是按你的方法解决了。多谢!
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!