Search Type: Posts; User: tomcheng76
Search: Search took 0.03 seconds.
-
20 Nov 2009 2:00 AM
- Replies
- 4
- Views
- 1,669
override handlerFailure function???
handleFailure : function(response, e){
this.transId = false;
var options = response.argument.options;
response.argument =... -
19 Nov 2009 7:26 PM
- Replies
- 2
- Views
- 1,131
yes..better way is to something like this
toolbar.add({
text: 'File',
cls: 'mybtncls',
... -
19 Nov 2009 6:38 PM
- Replies
- 2
- Views
- 1,131
here is the default css.
.x-toolbar .x-btn-left{
background:none;
}
.x-toolbar .x-btn-right{
background:none;
}
.x-toolbar .x-btn-center{ -
19 Nov 2009 6:32 PM
Jump to post Thread: Get all hidden Ext.Window by tomcheng76
- Replies
- 3
- Views
- 988
If you register any windows to another manager (windowgroup). u have to use that windowgroup getby function to find those windows.
-
19 Nov 2009 6:29 PM
Jump to post Thread: Get all hidden Ext.Window by tomcheng76
- Replies
- 3
- Views
- 988
Ext.WindowMgr.getBy
http://www.extjs.com/deploy/ext-2.2/docs/?class=Ext.WindowMgr
var hiddenwins = Ext.WindowMgr.getBy(function(win){
if (win.hidden){
return true;
} else {
... -
23 Oct 2009 2:17 AM
Jump to post Thread: Ext.ux.data.PagingStore [v0.5] by tomcheng76
- Replies
- 276
- Views
- 126,211
Is this better?
insert: function(index, records) {
//find reference for snapshot first
var refindex = -1, refrecord = null;
if (index > 0){
refindex =... -
21 Oct 2009 1:33 AM
Jump to post Thread: Ext.ux.data.PagingStore [v0.5] by tomcheng76
- Replies
- 276
- Views
- 126,211
Thanks. this is helpful.
-
21 Oct 2009 12:49 AM
Jump to post Thread: Ext.ux.data.PagingStore [v0.5] by tomcheng76
- Replies
- 276
- Views
- 126,211
Would u mind pointing me to that thread?
Once more question. What is the usage of this.snapshot? Thanks in advance. -
20 Oct 2009 7:31 PM
Jump to post Thread: Ext.ux.data.PagingStore [v0.5] by tomcheng76
- Replies
- 276
- Views
- 126,211
great plugin, thanks.
Should this.allData/this.snapshot use insert (same as this.data) instead of addAll in the insert function?
As insert function is supplying an index argument and addAll... -
14 Oct 2009 11:32 PM
- Replies
- 2
- Views
- 1,677
are you using version 2.3?
or you may need this
Ext.override(Ext.menu.Menu, {
autoWidth : function(){
var ua = navigator.userAgent.toLowerCase();
... -
7 Oct 2009 11:23 PM
- Replies
- 4
- Views
- 1,689
try this
Ext.apply(Ext, {
getCmpByType : function(type){
var r = [], ri = -1;
Ext.ComponentMgr.all.each(function(item){
if... -
6 Oct 2009 11:56 PM
- Replies
- 12
- Views
- 3,436
i guess x-btn-focus is what css what you are looking for.
-
5 Oct 2009 10:17 PM
Jump to post Thread: Is it good destroy override? by tomcheng76
- Replies
- 2
- Views
- 895
I experienced "Slow script error" in IE when i close the browser which is having a big ext js application.
following the idea of here, here is my override
Ext.apply(Ext, {
destroy :... -
2 Sep 2009 5:56 PM
- Replies
- 3
- Views
- 1,167
thanks condor
this solve my problem
select : function(path, root, type){
if(!root || root == document){
root = document;
}
... -
1 Sep 2009 10:09 PM
- Replies
- 3
- Views
- 1,167
Ext.DomQuery.select("book[@grp='type1,type2']", document);
Error parsing selector, parsing failed at "[@grp='type1"
Is there a way to escape the comma?
Thanks in advance. -
14 Aug 2009 12:33 AM
Jump to post Thread: JsonStrore from a string by tomcheng76
- Replies
- 3
- Views
- 752
data is config of JsonStore, and you need object, so do a JSON decode.
var myStore = new Ext.data.JsonStore({
data : Ext.decode(json),
reader: new Ext.data.JsonReader({
... -
14 Jul 2009 1:44 AM
- Replies
- 7
- Views
- 1,824
it is quite difficult to find the available type.
Actually it is in the Ext.data.Field
http://extjs.com/deploy/dev/docs/source/DataField.html#cfg-Ext.data.Field-type -
14 Jul 2009 1:18 AM
- Replies
- 10
- Views
- 3,810
sorry about that you are using form.submit but not Ajax
so XHR show nothings
you may see this page
http://www.extjs.com/deploy/ext-2.2.1/docs/?class=Ext.form.BasicForm
and the doAction method.... -
14 Jul 2009 12:58 AM
- Replies
- 10
- Views
- 3,810
@animal, yup, setContentType depends on whether he uses responseXML or responseText
example in the link is a JSON one ~~
@basha_ahmad you better set breakpoint in success and failure return of... -
14 Jul 2009 12:54 AM
- Replies
- 2
- Views
- 739
that seems correct, did u use firebug to make sure this.add didn't run two times?
also, why dont you put the grid into panel's items ?? -
14 Jul 2009 12:46 AM
Jump to post Thread: class extension by tomcheng76
- Replies
- 8
- Views
- 1,251
ohoh, it seems that if the second parameter is a object (case 1), that one actually is overrides, hope some core developers help ~~
return function(sb, sp, overrides){
... -
14 Jul 2009 12:42 AM
Jump to post Thread: class extension by tomcheng76
- Replies
- 8
- Views
- 1,251
The third parameter (overrides) of Ext.extend is optional.
# overrides
A literal with members which are copied into the subclass's prototype, and are therefore shared among all instances of the new... -
14 Jul 2009 12:27 AM
- Replies
- 10
- Views
- 3,810
i think in the jsp you have to use a response..like this one
response.setContentType("text/xml");
response.setHeader("Cache-Control", "no-cache");
more in... -
8 Jul 2009 11:23 PM
Jump to post Thread: how to add wrap to textarea?? by tomcheng76
- Replies
- 5
- Views
- 1,193
you mean this config??
maxLength : Number
Maximum input field length allowed (defaults to Number.MAX_VALUE) -
8 Jul 2009 1:40 AM
Jump to post Thread: Where are the Api docs for 2.2 by tomcheng76
- Replies
- 3
- Views
- 1,979
http://www.extjs.com/deploy/ext-2.2.1/docs/
Results 1 to 25 of 120
