[code="java"]Ext.onReady(function(){
var pageSize=2;
start = 0;
var siteStore = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url:'adOwner/adOwnerMsgForm.action',
method:'POST'
}),
//解析数组
reader: new Ext.data.JsonReader({
//总记录数
totalProperty: 'totalCount',
root: 'adOwnerResult'
},
['value','name']
)
});
siteStore.load({params:{start:start,limit:pageSize}});
var pagingBar = new Ext.PagingToolbar({
region:'south',
pageSize: pageSize,
store: siteStore,
displayInfo: true,
displayMsg: '显示第 {0} 条到 {1} 条记录,一共 {2} 条',
beforePageText: "第",
afterPageText: "页 共{0}页",
emptyMsg:"没有记录"
});
var siteMsg = new Ext.form.ComboBox({
store : siteStore,
hiddenName:'selectAdId', //提交传过去的值
emptyText : "请选择",
mode : 'remote',
typeAhead : true, //延时查询
typeAheadDelay:1000,//默认250
triggerAction : 'all', //每次下拉均显示全部选项
valueField : 'value',
displayField : 'name',
loadingText : '正在加载信息',
selectOnFocus : true,
editable : false, //不可编辑
border : true,
frame : true,
resizable : true,
bbar: pagingBar
});
siteMsg.render("mydiv");
});[/code]
[b]问题补充:[/b]
我应该怎么给分
[b]问题补充:[/b]
Rowen query 参数中文好像没什么反应
[b]问题补充:[/b]
我知道你的意思,英文已经能过滤了,只是中文传过去没接收到
[b]问题补充:[/b]
Rowen 非常感谢
Ext combobox 分页工具栏不显示
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
9条回答 默认 最新
- iteye_20589 2009-07-13 20:15关注
[quote]bbar: pagingBar [/quote]
combo分页不需要这个,它本身就有这个功能,还有你的mode是remote,combo还有minChars默认是4个字节,比如要输入yyyy四个字母时,combo会自动搜索后下拉结果,另外这种模式下默认会传一个query参数,主要是用来过滤combo下拉的条件用的,还有下拉列表默认宽度是120好像,你可以设置一下宽度listWidth的值....本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 如何在scanpy上做差异基因和通路富集?
- ¥20 关于#硬件工程#的问题,请各位专家解答!
- ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
- ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
- ¥30 截图中的mathematics程序转换成matlab
- ¥15 动力学代码报错,维度不匹配
- ¥15 Power query添加列问题
- ¥50 Kubernetes&Fission&Eleasticsearch
- ¥15 報錯:Person is not mapped,如何解決?
- ¥15 c++头文件不能识别CDialog