简体   繁体   English

同构SmartClient是否具有当用户在表单文本项上选择选择列表记录时触发的回调?

[英]Does Isomorphic SmartClient have a callback that fires when a user selects a pick list record on a form text item?

I am developing a web application using Isomorphic SmartClient. 我正在使用同构SmartClient开发Web应用程序。 I am searching for a callback fired when the user selects a pick list record from a DynamicForm TextItem pick list, but I am unable to find one. 我正在搜索当用户从DynamicForm TextItem选择列表中选择一个选择列表记录时触发的回调,但是找不到。 Does a callback for this event exist in SmartClient? SmartClient中是否存在此事件的回调? If not, is there a good way to tell when the user has selected a pick list record? 如果不是,是否有一个很好的方法来告诉用户何时选择了选择列表记录?

Since you are talking about ComboBoxItem probably(and even if it is SelectItem it is the same) and they extends TextItem, which extends FormItem. 由于您可能正在谈论ComboBoxItem(即使它是SelectItem,它也是相同的),并且它们扩展了TextItem,后者扩展了FormItem。 FormItem and it's subclasses do have changed method - http://www.smartclient.com/docs/10.0/a/b/c/go.html#method..FormItem.changed But this one will fire, after change is done, in case you need to handle control on the time of change - use change method (and you can even stop the change by returning false) - http://www.smartclient.com/docs/10.0/a/b/c/go.html#method..FormItem.change FormItem中,它的子类都已经改变了方法- http://www.smartclient.com/docs/10.0/a/b/c/go.html#method..FormItem.changed但是这样一来会火,变更完成后,如果您需要控制更改时间-使用更改方法(甚至可以通过返回false来停止更改) -http://www.smartclient.com/docs/10.0/a/b/c/go .html#method..FormItem.change

Good luck 祝好运

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当选择列表文本更改时(在onchange事件触发之前)如何触发回调函数? - How to trigger a callback function when select list text changes (before onchange event fires)? 当用户在 react.s 中选择来自 api 的列表项时,如何切换 class? - How to toggle class when user selects a list item coming from api in react.s? JavaScript Todo List-当我单击“编辑”按钮时,它选择了错误的文本输入,但仍编辑正确的项目 - JavaScript Todo List - When I click 'edit' button, it selects the wrong text input, but still edits the correct item 检测用户何时选择文本区域中的文本 - Detect when user selects text in a textarea 控制`.then()`回调何时触发 - Control when a `.then()` callback fires 当用户选择False Hit单选按钮时,如果文本字段为空,如何确保无法提交表单? - How to make sure form cannot be submitted if text field is empty when user selects False Hit radio button? 用户在下拉菜单上选择一个项目后显示的文本? - Text shown after a user selects an item on a drop down menu? 我有一个产品清单。 当用户选中该复选框时,页面仅显示所选类别中的项目列表。其余产品将隐藏 - I have a product list. when user selects the checkbox, page displays list of items in selected category only.remaining products will hide 如何限制用户在FORM中选择的列表框选项的数量? - How to limit number of List Box options a user selects in a FORM? 选择HTML选择/下拉列表中的项目时会触发什么事件? - What event fires when item in HTML select/dropdown list is selected?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM