EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 14, 2025, 12:18:01 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
change cell text without editor (datagrid)
Pages: [
1
]
« previous
next »
Print
Author
Topic: change cell text without editor (datagrid) (Read 10399 times)
iskandarkbr
Newbie
Posts: 36
change cell text without editor (datagrid)
«
on:
March 10, 2015, 07:15:30 PM »
can we change the text of cell in datagrid?
i want calculate two editor-field which the result place to non-editor-field
Logged
iskandarkbr
Newbie
Posts: 36
Re: change cell text without editor (datagrid)
«
Reply #1 on:
March 10, 2015, 07:39:40 PM »
i found that :
row.fieldResult=row.fieldA * row.fieldB
its simple indeed.
but, field fieldResult change after we endEdit the field
can we get the change for fieldResult automatically while we type number on editor ( i bind to keyup event)
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: change cell text without editor (datagrid)
«
Reply #2 on:
March 10, 2015, 07:43:40 PM »
Please refer to
http://www.jeasyui.com/forum/index.php?topic=1803.0
Logged
iskandarkbr
Newbie
Posts: 36
Re: change cell text without editor (datagrid)
«
Reply #3 on:
March 10, 2015, 08:01:35 PM »
the above topic assumed that all field has editor, in my case i dont put editor on the result field
Logged
iskandarkbr
Newbie
Posts: 36
Re: change cell text without editor (datagrid)
«
Reply #4 on:
March 10, 2015, 08:11:03 PM »
i solved it, but little bit tricky
row.resultField=editor*row.B
$("#dg").datagrid('endEdit', index);
$("#dg").datagrid('selectRow',index).datagrid('editCell',{index: index,field: currentFieldName});
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...