ext 级联菜单
来源:互联网 发布:sql like in 编辑:程序博客网 时间:2024/05/16 12:28
var modelStore = new Ext.data.JsonStore({
url:'<%=path%>/servlet/common?action=getModel',
fields : ['modelid', 'model_name']
});
modelStore.load();
var modelbox = new Ext.form.ComboBox({
fieldLabel : '选择(输入)模板',
hiddenName : 'model_name',
store :modelStore,
valueField : 'model_name',
displayField : 'model_name',
typeAhead : true,
mode : 'local',
triggerAction : 'all',
allowBlank:false,
blankText : '请选择或者输入模板',
emptyText : '选择或者输入模板',
editable: true,
selectOnFocus : true,
width : 190
});
var orgStore = new Ext.data.JsonStore({
url:'<%=path%>/servlet/common?action=getajtype',
fields : ['ajtypeid', 'classname']
});
orgStore.load();
var orgbox = new Ext.form.ComboBox({
fieldLabel : '选择案件类型',
hiddenName : 'ajtypeid',
store :orgStore,
valueField : 'ajtypeid',
displayField : 'classname',
typeAhead : true,
mode : 'local',
triggerAction : 'all',
allowBlank:false,
blankText : '请选择案件类型',
emptyText : '选择案件类型',
editable: true,
selectOnFocus : true,
width : 190,
listeners:{
"select":function(orgbox,record,index){
var codeId = orgbox.getValue();
//modelStore.load({params:{code:codeId}});
modelStore.proxy=new Ext.data.HttpProxy({url:'<%=path%>/servlet/common?action=getModel&code='+codeId});
modelStore.load();
Ext.getCmp(modelbox.id).setValue('');
}
}
});
- ext 级联菜单
- Ext级联菜单实例
- Ext实现级联菜单
- Ext ComboBox级联菜单方法
- Ext的combox实现3级联动菜单
- Ext的combox实现3级联动菜单
- 级联菜单
- 级联菜单
- 级联菜单
- 级联菜单
- 级联菜单
- 菜单级联
- 菜单级联
- 级联菜单
- 级联菜单
- 级联菜单
- 级联菜单
- 级联菜单
- 20110607
- Special characters
- android widget的自动更新
- 认识不认识的控件 - ASP.Net
- 让ubuntu10.04支持mysql的innodb引擎
- ext 级联菜单
- 系统吞吐量评估方法(冯凌圣)
- 新浪微博首席架构师漫谈微博底层架构
- 让TscrollBox响应鼠标滚轮的滚动事件
- An Introduction to Recursion, Part 2
- 各大型网站架构分析收集
- Linux系统利用Crontab命令实现定时重启
- 兼容IE,Firefox 图片即时显示
- 用DirectShow实现视频采集