extjs对于已经存在的select进行转换为ComboBox后,输入字符后都是按下拉列表首字母或字符进行点年个搜索的,我能否实现模糊搜集,即输入的内容只要下拉列表中含有就自动显示出来,同时符合条件的字符高亮显示?
Ext.onReady(function(){
Ext.QuickTips.init();
var converted = new Ext.form.ComboBox({
typeAhead: true,
triggerAction: 'all',
transform:'state',
emptyText:'Select a state...',
width:180,//select框宽度
forceSelection:true//是否强制选择
});
});
Ext.onReady(function(){
Ext.QuickTips.init();
var converted = new Ext.form.ComboBox({
typeAhead: true,
triggerAction: 'all',
transform:'state',
emptyText:'Select a state...',
width:180,//select框宽度
forceSelection:true//是否强制选择
});
});
解决方案 »
- js中如何替换单个反斜杠
- [PHP]页面中嵌入form表单提交,如何用jquery实现点击submit后,在父页面弹出层,显示它提交的内容?
- 烦请高手解释一下这种语法结构
- 一个js控制select表单的问题
- 给当前页赋值
- 下载时要通过管理员验证才能下载?
- 提取字符串中第三个字符的方法是什么?
- 帮帮忙,javascript 可以直接得到当前页的所有代码吗?
- onmouseover="this.focus();"问题
- ===========Ext2.0 分页 碰到的问题 =========================
- 注册时,未同意协议书,下一步按纽不可用,用JS怎么实现啊?
- javascript如何得到url的返回值?
for (int i = 0; i < list.Count;i++ )
{
string strIMA01=((IMA_FILE)(list[i])).IMA01;
string strIMA02 = ((IMA_FILE)(list[i])).IMA02;
((IMA_FILE)(list[i])).IMA01=strIMA01.Replace(strSqlWhere,"<font color='red'>"+strSqlWhere+"</font>");
((IMA_FILE)(list[i])).IMA02 = strIMA02.Replace(strSqlWhere, "<font color='red'>" + strSqlWhere + "</font>");
}
json = ExtUtil.ToJSON(list);//获取Json字符串说明:
IMA_FILE 是自字义的实体类。如果从数据库中得到的是DataTable,不是list,就不需要这步的转换