DevExpress ASPxListBox 使用方法 积累
来源:互联网 发布:淘宝网店代理是什么 编辑:程序博客网 时间:2024/05/17 08:35
1、ASPxListBox 数据绑定 Item 添加 删除
DevExpress 官方帮助:
The ASPxListBox control allows you to modify the ASPxListEdit.Items collection on callbacks only (e.g. add and remove items, populate the controls with new data from a data source, etc.).
It is not possible, for example, to modify a column collection, change items selection, or change SelectionMode on callbacks. To perform these actions on the client side, you can wrap the control with theASPxCallbackPanel control and process a required scenario on a callback to the panel.
添加删除Item只能在callback事件中处理,客户端调用语句:
<dx:ASPxButton ID="btnDeleteUpload" runat="server" Text="删除已有" AutoPostBack="false"
Style="margin: 16px auto;">
<ClientSideEvents Click="function(s, e) { listAttachment.PerformCallback(listAttachment.GetSelectedIndex());}" />
</dx:ASPxButton>
PerformCallback的参数可以传递要删除的ItemIndex。
服务器端:protected void listAttachment_Callback(object sender, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e) 中处理数据绑定或者删除Item ,利用e.Parameter的值来判断。
- DevExpress ASPxListBox 使用方法 积累
- DevExpress ASPxListBox can't get selected items after postback
- DevExpress ASPxGridView 使用方法概述
- DevExpress GridControl使用方法总结
- DevExpress GridControl使用方法总结
- DevExpress GridControl使用方法总结
- DevExpress GridControl使用方法总结
- DevExpress GridControl使用方法总结
- DevExpress GridControl使用方法总结
- DevExpress GridControl使用方法总结
- DevExpress GridControl使用方法总结
- Devexpress Report Service 使用方法
- DevExpress GridControl使用方法
- DevExpress 皮肤使用方法
- DevExpress GridControl使用方法总结
- DevExpress.XtraEditors.VScrollBar 使用方法
- DevExpress的XtraReport使用积累
- DevExpress.XtraScheduler控件的使用方法
- 第6回 スライドによるページナビゲーション
- mysql 备份各种方法
- 第7回 ListBoxのスタイル変更と選択された項目データの表示
- 第8回 ボタンが開閉するアコーディオンメニュー
- 第9回 アニメーションを伴ったページナビゲーション
- DevExpress ASPxListBox 使用方法 积累
- 第10回 X軸を中心に画像が回転して入れ替わる
- loadrunner9.1 安 装及 破 解 方 法
- java socket 连接数据传输判断是否结束
- 大道至简,职场上做人做事做管理
- android 传感器 sensor
- 解决Clock skew detected
- 网站压力测试方法- Apache自带的性能测试工具ab的使用
- 二分查找