存档

‘ExtJs’ 分类的存档

ExtJs comboBox 空字符处理

2010年6月23日 逝去的风 没有评论

当extJs comboBox 中含有空元素时,显示的很小,下面的代码就是用来处理此问题的。

Ext.override(Ext.form.ComboBox, {
initList: (function(){
if(!this.tpl) {
this.tpl = new Ext.XTemplate(‘

{‘, this.displayField , ‘:this.blank}

阅读全文…

ExtJs 给树节点添加右键菜单

2010年6月3日 逝去的风 没有评论

很简单,查看ExtJs的API文档,找到TreePanel,然后找到contextmenu ,展开后,会看到如下内容,包括解释和例子!
contextmenu : ( Node node, Ext.EventObject e )
Fires when a node is right clicked. To display a context menu in response to this event, first create a Menu object (…
Fires when a node is right clicked. To display a context menu in response to this event, first create a Menu object (see Ext.menu.Menu for details), then add a handler for this event:

阅读全文…

分类: ExtJs 标签:

ExtJs TreePanel Checkbox , 选择父节点,自动选择全部子节点…

2010年4月12日 逝去的风 没有评论

使用ExtJs的TreePanel 时,如果你使用了Checkbox,一般需要实现如下功能:

1、击父节点,则选择全部子节点。If a parent node is checked, check all the children
2、 不选择父节点时,则自动将子节点不选。If a parent node is unchecked, uncheck all the children
3、选择一个子节点后,则父节点、父节点的父节点….自动选中。If a child node is checked, check all the ancestors

阅读全文…

ExtJs资源收集

2009年12月17日 逝去的风 没有评论

ExtJs教程类
http://www.extjs.com/learn/Manual:CommunityExampleSites
http://examples.extjs.eu/

与查询有关的教程
http://www.sk-typo3.de/ExtJS-Filter-Grid.345.0.html
http://www.codeproject.com/KB/scripting/extjs_datagrid.aspx
http://www.extjs.com/learn/Tutorial:Building-grid-with-livesearch-form–chapter-1
http://gridsearch.extjs.eu/
http://www.extjs.com/learn/Tutorial:Building-grid-with-livesearch-form–chapter-4

阅读全文…

分类: ExtJs 标签:

ExtJs Grid filters 资源收集

2009年12月17日 逝去的风 没有评论

只是找到的好资源,但是感觉不太符合中国人的操作习惯,没有研究。不过做的确实不错!因此记录下来

相关描述及代码下载

在线示例

ExtJs ComboBox 在IE 下 自动完成功能无效的解决方案

2009年12月14日 逝去的风 没有评论

使用 ComboBox 来作为自动完成的组件,就像google suggestion ,可是在IE下怎么也无法输入字符,是处于不可编辑状态,而firefox和chrome都正常显示。我在2个ExtJs QQ群中问这个问题,都没有解决,不知道是不会还是不想回答。我在这里分享出来解决办法。
这个问题困扰了我不少时间,在网上总也搜索不到答案。最后终于通过google找到了解决办法。

阅读全文…

ExtJs EditorGridPanel中加入 ComboBox

2009年12月12日 逝去的风 1 条评论
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" type="text/css" href="../extjs-2.0/resources/css/ext-all.css">
    <title>Ext 2.0 Editor Grid Example</title>
    <script type="text/javascript" src="../extjs-2.0/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="../extjs-2.0/ext-all-debug.js"></script>
<script type="text/javascript">
 
 <a href="http://ddgrow.com/extjs-editorgridpanel%e4%b8%ad%e5%8a%a0%e5%85%a5-combobox#more-800" class="more-link">阅读全文...</a></script></link></meta></head></html>

ExtJs组合框实时查询

2009年12月12日 逝去的风 没有评论

http://akdora.wordpress.com/2009/02/04/live-combo-search-with-extjs/

在ExtJs中使用 try catch

2009年12月8日 逝去的风 没有评论

在ExtJs中如果你要使用try catch,记住要在最后加上 分号 ;
不然很可能出现一些你无法理解的错误!(我是在IE下测试的,在其他浏览器上没有做测试,不过还是加上;)

对:


try{
	alert(1);
}catch(err){
	alert(2);
};

阅读全文…

ExtJs 学习随笔

2009年12月3日 逝去的风 没有评论

转载本文请注明:转载自 天天成长的博客 http://www.ddgrow.com
1、如果panel可以展开和折叠,则需要为panel指定宽度(viewport注意点)
Expanding and collapsing a panel that does not have a width specified
can produce rendering problems. Therefore, it’s best to specify a width
for panels—of course this is not needed for the center, as this panel
automatically fills the remaining space. 阅读全文…

分类: ExtJs 标签: