在将NetAdvantage升级到2008 vol2后,发现在2008 vol1版本中能正常使用的UltraWebGrid绑定WebCombo功能,如果WebCombo的Editable属性设为true话,那么在2008 vol2版本中将会抛出异常:WebCombo has the Editable property set to True; therefore it must have equal DataTextField and DataValueField to be used as an editor in an UltraWebGrid.
经与NetAdvantage开发人员联系,已确定在2008 vol2版本中,如果WebCombo的DataValueField不与DataTextField相同的话,那么在UltraWebGrid中的WebCombo不支持Editable=true。解决办法是用2008 vol1这个版本。
NetAdvantage开发人员回信如下:
The webcombo does not support editable=true, when the DataValueField is different from the DataTextField. This is done because the user only has the ability to type in a datatext value. Since the user has no ability to ‘pair’ that with a DataValue the combo and grid have no way to store the user entered information. If you need to have an editable field, you’ll need to set the DataValueField to match the DataTextField, otherwise, you’ll need to set the WebCombo to Editable=false. As an alternative, you can use the 2008 Volume 1 release of NetAdvantage for ASP.NET, where the WebCombo allowed you to have the combination of properties you’re looking for.
标签:NET, NetAdvantage, UltraWebGrid, WebCombo

Post a Comment