编辑模式下的项目更改事件 [英] item change event in edit mode

查看:69
本文介绍了编辑模式下的项目更改事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有计算字段小计的列表.我放置了一个文本框,它将填充小计的总数.据我了解,您不能求和计算字段.我使用javascript遍历列表项并获取总数并将其放在 文本框.但是问题在于总和基于数量,并且列表处于编辑模式,因此用户可以轻松更改它.

I have a list with calculated field subtotal. I placed a textbox which will populate total of the subtotal. As i understand you cannot sum for calculated fields. i used javascript to loop through the list items and get the total  and placed it in the text box. But the problem there is the sum is based on Quantity and the list is in edit mode so that users can easily change it. 

我当时正在考虑在javascript中添加项目更改事件,并进行必要的更改,以便每次更改数量时,文本框都会更新为总计.

I was thinking to add a item change event in the javascript and make necessary changes so that the text box will get updated with the total each time when the qty is changed.  

即使我收到了帖子回到更改数量即可.

有人可以建议一种方法或事件处理程序,用于在列表的编辑模式下更改项目的时间

can some one suggest a way or the event handler of when an item is changed in edit mode of the list 

推荐答案

项目更新时,计算字段将发生变化.
the calculated field should change when item updates.


这篇关于编辑模式下的项目更改事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆