如何清除富文本框中的某些内容 [英] how to clear a certain content in a rich text box

查看:1097
本文介绍了如何清除富文本框中的某些内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个显示项目的富文本框。这些项目具有列名称。列表名称在表单加载时加载。它们将值保存为行。单击一个按钮即可添加这些行(当添加按钮时点击)。



在底部,让我说我在rtb中有另一个字段(总金额),显示金额列的总值。这也显示当点击计算按钮时。



如果有人想要添加另一行进行计算,它将创建显示的格式。所以我想在另一行时清除总金额字段项目得到了补充。有没有办法做到这一点。

i have a rich text box that displays items.These items have column names.The column names are loaded when the form loads.They hold values as rows.These rows are appended at a click of a button (when add button is clicked).

At the bottom,let me say i have another field(total amount) in the rtb which displays total value of a Amount column.This is also displayed when calculate button is clicked.

If someone wants to add another row to be calculated it would create the format displayed.so i wanted to clear the total amount field when another item gets added.Is there a way to do that.

推荐答案

每次将新记录添加到rtb时重新计算总和。

这样你就拥有了最新的总数而且你不必删除总数。
Recalculate the sum total every time a new record is added to the rtb.
This way you have the latest total and you don't have to remove the total.


这篇关于如何清除富文本框中的某些内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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