EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: ichenkj on September 03, 2014, 07:04:55 PM



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


Title: Re: 关于easyUI的datagrid修改某列显示值的问题
Post by: ichenkj 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.


Title: Re: 关于easyUI的datagrid修改某列显示值的问题
Post by: hjzhbb7758 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 试试


Title: Re: 关于easyUI的datagrid修改某列显示值的问题
Post by: ichenkj on September 10, 2014, 08:28:02 AM
谢谢楼上的解答,问题确实是按你的方法解决了。多谢!