UltraComboEditor - 基础设施控制
我有一个 UltraComboEditor(Infragistics 控件),用户可以在其上输入值。我使用 AutoComplete 属性来做到这一点。
但现在我有一个问题。我需要确保我的用户可以删除他写入的值。我使用了 canUndo 函数,但它不起作用。
我该如何解决我的问题?
谢谢。
I have an UltraComboEditor (Infragistics control) and the user can input values on it. I used the AutoComplete property to do that.
But now I have a problem. I need to make sure that my user can delete a value that he wrote. I use the function canUndo but it not works.
How can I solve my problem?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

我将尝试添加一个 ButtonLeft 元素,也许带有一个红十字图像。
让用户从组合框中选择一个项目,然后他/她将按下按钮元素来触发删除当前选定元素的操作。
在 EditorButtonClick 事件中,您应该要求确认,搜索您的项目集合,然后删除选定的项目。
I will try to add a ButtonLeft element, perhaps with a red cross image.
Let the user select an item from the combobox and then he/she will press the button element to trigger the action to delete the current selected element.
In the EditorButtonClick event you should ask for a confirm, search into your items collection and then remove the one selected.