zoukankan      html  css  js  c++  java
  • DevExpress ASPxComboBox lost selected item after postback

    <dx:ASPxComboBox ID="cbxSname" ClientInstanceName="cbxSname" Font-Names="微软雅黑" Font-Size="12px"
                                            runat="server" EnableCallbackMode="true" CallbackPageSize="20" Width="170px"
                                            IncrementalFilteringMode="Contains" ValueType="System.Int32" ValueField="Gong_sid"
                                            OnItemsRequestedByFilterCondition="cbxSname_OnItemsRequestedByFilterCondition"
                                            OnItemRequestedByValue="cbxSname_OnItemRequestedByValue" TextFormatString="{0}"
                                            DropDownStyle="DropDown" MaxLength="100">
                                            <Columns>
                                                <dx:ListBoxColumn FieldName="Gong_smch" Caption=" " Width="50px" />
                                            </Columns>
                                        </dx:ASPxComboBox>
    Code is above. When you use this, make sure the value field type match the attribute ValueType which means if you have an int primary key value field, then set the ValueType to System.Int32. Or you will meet this issue.
  • 相关阅读:
    分页系统
    ORM-数据处理
    Django的用法
    登录cookie写法
    MySQL数据库的安装创建
    前端弹框编写
    ADB常用指令
    Appium环境配置
    Jmeter中传递cookie值
    Jmeter从文件中读取参数值
  • 原文地址:https://www.cnblogs.com/justinliu/p/5961711.html
Copyright © 2011-2022 走看看