WebCombo的客户端对象模型

Java农产品质量溯源大数据管理系统源码 产品追溯基于“一物一码”从工厂生产环节至销售阶段,赋予产品唯一的数码,并关联产品名称、批号、生产时间等信息,建立包装关联关系,为后期产品的追溯、营销搭建信息基础。 农产品溯源,从原材料收购、生产、加工质检到包装运输、终端门店销售等环节追溯,可以保证产品质量,监管部门和消费者都可以查询产品信息。对生产进行层层把关、一旦发现问题、立即进行处理、提升产品质量。 阅读详情

在NetAdvantage 中那些控件都有客户端对象模型,对于UltraWebGrid等都是很容易就找到的,对于WebCombo不太好找,现在贴出来,可供参考,如果要对WebCombo中下拉的Grid进行客户端控制的话,可以使用getGrid()方法后得到Grid对象,这个对象其实就是UltraWebGrid的对象,其客户端模型可以参考UltraWebGrid的模型了。
NetAdvantage WebCombo的客户端对象模型如下:
The Combo Object of UltraWebCombo can be obtained within the page using the igcmbo_getComboById utility function.

var combo =igcmbo_getComboById('UltraWebCombo1');

The combo can also be referenced directly through the definition that is automatically generated for it. If the name of the combo on the server is 'UltraWebCombo1' then a variable called oUltraWebCombo1 will be available from anywhere within the page. The 'o' prefix is a convention used to indicate that the variable is an object as opposed to an HTML element. When a variable represents an HTML element, an 'e' is prefixed in front of it.

This topic also contains the following sections:

Properties

CancelPostback

Gets or sets a Boolean value that indicates whether postback should be cancelled when the next event occurs. If a postback is set to occur due to some other client-side activity, setting this property to True will prevent the postback from occurring. This property can be changed on the client.
var combo = igcmbo_getComboById('UltraWebCombo1');
combo.CancelPostBack = true;

DataTextField

Identifies the column key value used as the source of display text in the top portion of the WebCombo. This property corresponds to the property of the same name on the server. This property is read-only and should not be changed on the client.

DataValueField

Identifies the column key value used as the source of data values posted back to the server for WebCombo. This property corresponds to the property of the same name on the server. This property is read-only and should not be changed on the client.

Editable

Returns a Boolean value that indicates whether or not the WebCombo element is editable in the top portion of the element. If true, the user can enter their own values in the combo, if false they user is restricted to selecting values already present in the dropdown. This property corresponds to the property of the same name on the server. This property is read-only and should not be changed on the client.
var combo = igcmbo_getComboById('UltraWebCombo1');
var canBeEdited = combo.Editable;

Element

Returns the HTML element object corresponding to the WebCombo on the page. This property is read-only and should not be changed.
var element = igcmbo_getComboById('WebCombo1').Element; element.style.color = "red";

Events

See below for Events.

ExpandEffects

This property returns an object that contains the values set for the expand effects that will be supplied when WebCombo is dropped down. For more detail, see the ExpandEffects object topic. The ExpandEffects object contains the same properties as the server-side version. This object corresponds to the property of the same name on the server.
var expfx = igcmbo_getComboById('WebCombo1').ExpandEffects; expfx.Duration = 100;
expfx.Opacity = 70;

Id

Returns the HTML id property of the top-level WebCombo element on the page. This property is read-only and should not be changed.
var id = oUltraWebCombo1.Id;

NeedPostback

Gets or sets a Boolean value that indicates whether a postback should be initiated after the following event occurs. Set this property to True to force a manual postback to occur after the next event. This property can be changed on the client.
oWebCombo.NeedPostBack = true;

Methods

getDisplayValue()

Returns the current value of the top portion of the Webcombo element.

  • Parameters:
    None.

 

var value = oCombo.getDisplayValue();

 

getDropDown()

Returns a boolean value that indicates whether or not the WebCombo dropdown is currently displayed.

  • Parameters:
    None.

 

if(oCombo.getDropDown())
    return;
else
    oCombo.setDropDown(true);

 

getGrid()

Returns a reference to the oGrid object that manages the dropdown area of the WebCombo element. This object supports the entire object and programming model of the WebGrid element on the client.

  • Parameters:
    None.
var oGrid = oCombo.getGrid();
// Turn off sorting in the dropdown
oGrid.AllowSort = 2;

 

getSelectedIndex()

Returns the index offset of the currently selected row of the dropdown grid.

  • Parameters:
    None.

 

var index = oCombo.getSelectedIndex();

 

getVisible()

Returns a boolean value that indicates whether or not the WebCombo element is visible on the page.

  • Parameters:
    None.

 

var visible = oCombo.getVisible();
if(!visible)
    oCombo.setVisible(true);

 

setDisplayValue(newValue, bFireEvent)

Sets the value and the text in the top portion of the WebCombo element to the passed in newValue parameter. The second parameter, bFireEvent, is a boolean value that indicates whether BeforeSelectChange and AfterSelectChange events should be fired on the client.

  • Parameters:
    newValue - A string value that will be assigned to the element.
    bFireEvent - A Boolean value that specifies whether the BeforeSelectChange and AfterSelectChange client-side events should be fired. If true, the events will occur.

 

oCombo.setDisplayValue("John Doe", true);

 

setDropDown(bDrop)

This method controls the dropdown state of WebCombo. Passing true as a parameter causes the dropdown to display if it is not already displayed. Passing false causes the dropdown to dissappear if it is visible.

  • Parameters:
    bDrop - A Boolean value that specifies the dropped-down state of the element.

 

oCombo.setDropDown(true);

 

setVisible(bVisible)

Sets the visiblity of the WebCombo according to the passed-in Boolean value. If true, the WebCombo element is displayed at its current position. If false, the WebCombo element is hidden on the page.

  • Parameters:
    bVisible - A Boolean value that specifies the visibility of the WebCombo element.

 

oCombo.setVisible(false);

 

setWidth(width)

Sets the width of the WebCombo element in pixels.

  • Parameters:
    width - An integer value that specifies the width of the element.

 

oCombo.setWidth(150);

 

Events

The Events object contains over 25 members that are used to specify JavaScript function handlers that are called in response to a variety of events occurring on the client. The Event member is only populated with a valid JavaScript function if the function name is set from the Events object of the DisplayLayout object on the server. 

All events are called with at least one parameter: The ID of the WebCombo on which the event occurred. In the case of the EditKeyDown and EditKeyUp events, additional parameters are added which specify thecurrent or new value for the edit portion of the combo, and the keycode of the keystroke that caused the event.

The members of the Events object are:

  • AfterCloseUp(id)
  • AfterDropDown(id)
  • AfterSelectChange(id)
  • BeforeCloseUp(id)
  • BeforeDropDown(id)
  • BeforeSelectChange(id)
  • EditKeyDown(id, currentValue, keyCode)
  • EditKeyUp(id, newValue, keyCode)
  • InitializeCombo(id)
ADS基础教程16 - 存档和导入(workspace、cell、view) 选择workspace_Archive目录作为保存workspace归档的目录,点击打开进行目录选择,点击Finish保存目录。,选择cell_Archive目录作为保存cell归档的目录,点击打开进行目录选择,点击Finish保存目录。,选择view_Archive目录作为保存view归档的目录,点击打开进行目录选择,点击Finish保存目录。(2)在弹框中,可以选择点击Select将参考的条目添加进来,然后点击Next…(2)在弹框中,可以选择点击Select将参考的条目添加进来,然后点击Next… 阅读详情

相关推荐

8.2-12.4GHz喇叭天线设计

使用后处理模板的优化算法,对a1、h_horn、b1进行优化,各参数的优化区间即为之前计算得到的参数范围。由于矩形喇叭的辐射特型基本上是E面和H面扇形喇叭的结合,当波导中只是单模传播(只有TE波)时,矩形喇叭的口径可以通过远场公式推理出来。表示矩形喇叭的口径效率,进行最佳增益设计时,一般取值为0.5。从表中可以看出,该结构在8.58GHz的增益误差为2.68%>2.5%,需要对结构进行优化。建模完成,之后就是在矩形波导尾部添加波导端口激励,以及对应频率的远场监视器。,在这里,将频率定为区间的中心频率。

qq_48897427的博客 6658

黑马程序员学习笔记----WinForm技术加强

---------------------- Windows Phone 7手机开发、.Net培训、期待与您交流! ----------------------    04.24 1、复习 -> 一般Windows程序的步骤 -> 创建窗体 -> 拖控件,设属性 -> 加事件,写方法 -> Label和LinkLabel 一般是提示作用 -> Butto

305

Docker一键部署Synopsys EDA全家桶(VCS/Verdi 2018版)保姆级教程

本文提供了一份详尽的Docker容器化部署Synopsys EDA工具链(VCS/Verdi 2018版)的保姆级教程。通过环境隔离与标准化,解决传统安装的依赖冲突问题,并重点攻克了容器内GUI图形界面显示的核心难题。教程涵盖从Docker基础安装、镜像获取、容器启动配置,到使用X11转发或VNC实现Verdi完美显示的完整实践,旨在帮助芯片设计工程师快速构建稳定、可移植的一键化EDA工作环境。

weixin_29281941的博客 198

MOSS母版页制作学习笔记(二)

接上文 4、<asp:ContentPlaceHolder ID="PlaceHolderSearchArea" runat="server" /> 放置搜索框的占位符;全局母版页,添加了内容的默认写法是 <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server"> <Shar...

weixin_30955617的博客 130

从零到一:Livox Mid-360 激光雷达的硬件集成与避坑实战

本文详细介绍了Livox Mid-360激光雷达的硬件集成全流程,包括硬件准备、网络配置、驱动编译和常见问题解决方案。通过实战经验,帮助开发者高效完成从设备拆箱到数据输出的完整链路,避免在IP设置、驱动编译和固件兼容性等环节踩坑。

salt的博客 1030

mysql8.0安装及配置超详细教程_mysql-8.0.15-winx64

MySQL8.0配置教程, 全网最详,同时有本地mysql和小皮系统见另一篇

小诺言的博客 2万+

深入理解 CSS 的 :before 和 :after 选择器(制作select下拉列表美化插件)

原文链接:http://www.cnblogs.com/LY-leo/p/5765598.html 对于 :before 和 :after 选择器,大家并不陌生,但是很少有人会主动去用它们。先解释下它们的定义和用法: :before 选择器在被选元素的内容前面插入内容,:after 选择器在被选元素的内容后面插入内容,都会使用 content 属性来指定要插入的内容。 有时候,项目中或多...

weixin_33711641的博客 522

MFC C++ 中开发 PLC 通信客户端

OPC UA | 工业标准化通信 | `open62541`(开源OPC UA库)或 `UA-.NET` 封装 | 跨平台、安全可靠,支持复杂数据类型 |- 连接句柄(`modbus_t*`/`UA_Client*`/`TS7Client*`)不可跨线程共享,需为每个线程创建独立连接。Modbus 是工业常用协议,分 **RTU**(串口)和 **TCP**(以太网)两种模式,以下以 Modbus TCP 为例。s=Tag`),复杂类型需解析扩展对象。

寒寒豆豆软件公司的博客 139

select 下拉列表选择框效果及美化(before 和 :after伪元素的妙用)

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script> <style type="text/css">

黄沙百战穿金甲,不破楼兰终不还。 1万+

ABAP CURR Data Type 深度解析与实战案例

CURR 数据类型是 SAP ABAP 中为处理货币金额而设计的一种特殊数据类型。CURR 数据类型能够自动根据关联的货币代码字段(例如 WAERS)确定小数位数,从而保证金额数据的精度与正确性。CURR 类型通常在 SAP 数据字典中使用,常见于各类业务数据表中,如会计凭证、销售订单等场景中,用于存储货币金额。CURR 数据类型底层实现上类似于 DEC 数据类型,但其特别之处在于与货币代码字段的绑定,这使得金额的格式化和显示可以自动匹配相应的货币规则。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 878

YOLOv11增量学习数据回放优化:解决新类别引入时的灾难性遗忘问题

本文提出了一种基于生成式潜在回放和提示学习的YOLOv11增量学习系统,旨在解决目标检测中的灾难性遗忘问题。系统采用改进的YOLOv11骨干网络,结合条件变分自编码器生成旧类别特征,并通过渐进式提示调优模块实现高效参数更新。关键技术包括:1) C3k2模块和C2PSA注意力增强特征提取;2) CLIP引导的VAE潜在空间数据回放;3) 类特定与超类别提示相结合的增量调优策略;4) 自适应特征金字塔与显式视觉中心融合机制。实验表明,该方法在保持原有检测性能的同时,显著降低了增量学习过程中的遗忘现象。

本博客聚焦 YOLOv11 全流程落地,涵盖架构优化、数据集处理、训练技巧与多场景部署,兼及国产数据库、Java 开发与 AI 模型应用,内容兼顾理论与工程实践,为开发者提供系统干货,助力高效提升技术能力。 2103

反爬虫:对抗最新反爬技术 Cloudflare详解

本文针对Cloudflare最新反爬机制提供完整解决方案,覆盖TLS指纹、行为轨迹、设备指纹等检测场景。文章首先分析Cloudflare的三重检测体系(TLS指纹、行为指纹、设备指纹)及其拦截表现,随后提出四种绕过方案:1)使用curl_cffi模拟浏览器TLS指纹;2)通过undetected-chromedriver移除自动化特征;3)Playwright结合stealth插件模拟人类行为;4)动态请求调度策略。重点推荐轻量级Python方案curl_cffi和浏览器自动化方案Playwright-st

数据知道的博客 4626

在客户端获取Infragistics WebCombo所选的值

在一个项目的开发中,遇到这样的情况,我希望在 Infragistics WebCombo 的下拉表中选择一行,然后把这行中的几个字段,分别填写到另外的几个控件上。当然,我们可以使用Infragistics WebCombo 的SelectedRowChanged事件,在事件中去获取选择行的内容,然后填写到其它控件上,并显示给用户,这样实现也挺简单,思路也明确。但是这样做,有个不好的地方,就是每

One ITer 4069

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

WebCombo 客户端绑定数据

///绑定webcombo1 var cbo = igcmbo_getComboById('<%=this.WebCombo2.ClientID %>'); for (var i = 0; i <4; i++) { var row = igtbl_addNew(cbo...

weixin_30484739的博客 125

efm32 入门.pdf

本PDF共计22页,介绍的是操作驱动API,下载与否自己斟酌。

Infragistics WebCombo Javascript API Demonstration

In this blog I will demonstrate how to interact with WebCombo client side API using Javascript. Now Let's begin wi...

ckjg72573的博客 156

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

WebCombo

WebCombo.NET 是一款基于AJAX技术,处于行业领先地位的Combo box控件。它提供众多高级的数据输入功能及其独特的技术。通过其内置的数据过滤功能,您可以在ASP.NET 2.0 Web应用程序中轻松添加专业的“auto complete”数据输入界面。通过 “FlyPostBack™” AJAX专利技术,WebCombo.NET可以快速加载并过滤大量...

weixin_34236869的博客 163

Add new rows to WebCombo in client-side javascript

  Knowledge Base Article: KB07700HOWTO:Add new rows to WebCombo in client-side javascriptThe information in this article applies to:UltraWebGrid (v5.2.20052),WebCombo (v5.2

jackljf的专栏 1184

WebCombo过滤中文不完全解决办法

NetAdvantage中有个WebCombo控件,当该控件Editable属性设为“true”时,则可以通过输入文字过滤webCombo弹出的grid中的记录。但该控件只支持英文过滤而不支持中文过滤。经试验,可以不完美的解决中文过滤问题。首先,WebCombo的Editable要设为true,EnableXmlHTTP=”True”,ComboTypeAhead=”Suggest”。然后,编

lee576的专栏 1058

使用WebCombo控件遇到的问题

1.在使用WebCombo时遇到这样一个问题,就是把它放到WebPanel控件后,一直不能获取它的值,后来访问它的官网,通过它自带的ClientSideEvents里面的AfterSelectChange方法,可以获取,但是太麻烦,它需要先找到WebCombo里面的类似于gridview的部分,然后找到选中行,再定位单元格,最后调用getText();方法获取。这样看来确实没有微软的方便,但是微软...

weixin_30788619的博客 132

Select a matching row of WebCombo control based on DataValue

Considering the following scenario:The user selected an item in a WebCombo control then do a "save" action, when h...

ckjg72573的博客 117

开篇 -- Intersoft WebUI Studio.NET 2007控件使用

开始写Blog的时候就希望自己坚持住,唉,这一下一个多月没浇花,花的叶都黄了:)我目前的项目用到这么个控件,版本是Intersoft WebUI Studio.NET 2007 R2 。这个是公司新买的控件,功能很强,相伴的使用起来也有些地方挺费尽。以后还会用到这个控件,把遇到的问题和解决方法写到这里。这样,一可以做个备份,下次再用可以找出来看看,二呢,还有用到这个控件朋友可以一起探讨一下。在

deathbee的专栏 1717

Infragistics使用

Infragistics系列控件是一套很好,很强大的控件,前些日子公司买的正版的asp.net版本的..好像800多美元一套...最新版本的7.3....感觉很好..现在自己做项目也用..却发现网上没有一套中文的教程,中文资料都很少..在这里就把自己的研究心得写下来...   首先安装,一步一步装就可以了..完成之后,有几点说明的   1.安装完之后开始-程序的菜单里有Create Vis

我的博客 1万+
上一篇: JavaScript日期处理函数大全
下一篇: 关于C#中for与foreach的性能比较测试
libraworm
博客等级 码龄24年 3粉丝 24原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值