Aspxcombobox动态填充在IE上工作得很好,但对于其他浏览器,当使用箭头键导航时,第二个依赖控件总是具有第一个、下一个而不是当前的值,所以我有一点延迟……
发布于 2010-05-26 17:59:21
敬大卫
是的,它类似于Asp.NET webforms中的级联DropDowns。在第二个组合框中使用回调事件的一些代码(即使是其他控件也没有问题-应该是类似的问题):
protected void cmbCity_Callback(object source, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e)
{
int CountryID = Convert.ToInt32(cmbCountry.SelectedIndex.ToString());
taLocationOPP.FillByCountry(dsOPP_Tracking.tblLocation, CountryID);
cmbCity.DataSource = dsOPP_Tracking.Tables["tblLocation"];
cmbCity.ValueField = "iLocationId";
cmbCity.TextField = "strLocation";
cmbCity.DataBind();
cmbCity.SelectedIndex = 0;
}P.S.
cmbCountry是父组合框...
通常我会得到所需的结果,但在example..etc etc...as的firefox中有一些延迟,在发布的问题中描述了这一点...
感谢您的努力:)
发布于 2010-05-27 00:26:37
这就是你想要实现的吗?
http://demos.devexpress.com/ASPxEditorsDemos/ASPxComboBox/ClientAPI.aspx
https://stackoverflow.com/questions/2911641
复制相似问题