00:34
jonathanochs joined
04:00
jonathanochs joined
04:42
martinfilliau joined
04:54
<soee>
hi, is it possible to assign drag and drop effect to a div that is loaded with ajax call?
04:57
<maritz>
soee: i don't see any reason why not.
04:58
<soee>
maritz, as im new to extjs can you give me some tips how can i make div draggable (this div doesnt exists at the beggining - is loaded with ajax)
05:25
<maritz>
soee: nah, sorry. haven't done drag'n'drop with ext yet
05:31
<kwk>
Hi! I have a grid with some columns hidden by default. The hidden columns are located left to all the non-hidden columns. Even though they are hidden, the left columns push the visible columns so that columns and column-headers don't align properly. If I comment the hidden columns out, the alignment works fine. Any ideas?
05:32
<kwk>
Oh, btw. the hidden columns are subcolumns.
07:37
<GyroB>
it is possible to have an actioncolumn that renders and icon depending of something?
07:44
<syao>
hello, ppl, I have a problem with tree panel.. i got "records[i] is undefined" error when loading data from page which gives json. P.s. how i should generate node id, which will be given to my json generating page, now node is empty. (got only root node name)
07:45
<GyroB>
syao, be sure u have the field defined in the model
07:45
<GyroB>
i have falled there too many times
07:47
<syao>
it should be "node"?
07:48
<syao>
in the model?
07:49
<GyroB>
u can access to id node by... store.getAt(rowIndex).get('id')
07:50
<GyroB>
or something like that
07:50
<syao>
but how should i generate it?
07:50
<syao>
do i need to do that at all..
07:51
<syao>
bw i use ext 4
07:52
<syao>
i got this kind of json, for testting
07:52
<syao>
{"text":".","children":[{"title":"t1","did_price":12,"maz_price":14,"measure":"m","children":[{"title":"t1.1","did_price":12.1,"maz_price":14.1,"measure":"m","leaf":true}]},{"title":"t2","did_price":2,"maz_price":4,"measure":"m","leaf":true},{"title":"t3","did_price":3,"maz_price":3,"measure":"m","children":[{"title":"t3.1","did_price":3.1,"maz_price":3.1,"measure":"m","leaf":true},{"title":"t3.2",
07:52
<syao>
"did_price":3.2,"maz_price":3.2,"measure":"m"}]}]}
07:54
<syao>
for now the json generates all the data and store takes it, but i got infinite layers of folders :D and enpty node var is sent to php which generates json
07:56
<syao>
code is here
07:56
<syao>
http://codepaste.net/gpdw47
07:58
<GyroB>
put on node
07:58
<GyroB>
type: 'auto'
08:02
<syao>
ok, now its no error, but node var is empty again
08:03
<syao>
in get json php url
08:03
<syao>
p.s. I got doubled values
08:04
<syao>
2 folders same name
08:05
<GyroB>
cant look closer right now
08:06
<GyroB>
but if its empty do a defaultvalue too
08:07
<syao>
http://imageshack.us/f/819/41518145.png/
08:07
<syao>
photo of result
08:09
<GyroB>
where's the problem?
08:13
<syao>
same folders
08:13
<syao>
+ no generated node value
08:14
<syao>
and i can open infinitive count of folders
08:14
<syao>
which shouldn't be
08:18
<GyroB>
cant help u
08:19
<GyroB>
i will try to repeat my question
08:19
<GyroB>
it is possible to have an actioncolumn that renders an icon depending on any row field?
08:21
<syao>
idk..not so expert in extjs ...
08:27
<syao>
Hygy, how to set "node" value in treepanel
08:28
<HyGy>
GyroB: you can set the Ext.getCmp('actionColumnMaFiTy').getClass=this.getClassActionColumnBin;
08:28
<HyGy>
getClassActionColumnBin: function(value, metaData, record)
08:28
<HyGy>
if (record.get('statusFlag')=='D')
08:28
<HyGy>
{ return 'category-list-item-reactivate'; }
08:28
<HyGy>
{ return 'category-list-item-action'; }
08:28
<HyGy>
mybe this way I think you can do it
08:28
<syao>
how to set node value in php code generating json query
08:38
<syao>
hygy, could you check my code a bit, its short
08:39
<syao>
could anyone help me?
08:47
<GyroB>
[HyGy1] ty but i found something with getClass
08:49
<HyGy1>
I think that is the source for my example what I pasted.
08:50
<GyroB>
at least, he does not use ext.getCmp at all
08:57
<HyGy1>
It is just an example to show the way....
08:57
<HyGy1>
You need to implement it yourself.
10:24
<eekboom>
hi folks! Short ST2 question: How do I prevent the address bar from being hidden when the app loads?
10:26
robbyoconnor joined
10:33
<MarcGuay>
eekboom: I don't know how it works in ST but it's actually just moving the page down a bit to give the illusion of hiding the address bar. There's a short javascript snippet that does this, something like window.location(0,1);
10:36
<MarcGuay>
eekboom: http://docs.sencha.com/touch/2-0/#!/api/Ext.Component-cfg-fullscreen
10:36
<eekboom>
Thanks. I can make the addres bar show on my ipod by tapping on the top header. My problem is just that I have enabled mobile safaris console and its notifications of JS errors also get hidden, so that I don't notice those errors.
10:37
<eekboom>
I'll try to set the location back automatically somehow
11:33
jonathanochs joined
11:47
<stephen>
I've set my button width in the contructor object to 50
11:48
<stephen>
Why is it rendering as 75?
11:48
<stephen>
It's not even a class
11:48
<stephen>
Ext is throwing the size directly on the element
11:49
<eekboom>
ahh, I always get confused when you post - at first I think that somebody is answering to me (my name's also stephen) before I remember that i use my nickname here
11:49
<eekboom>
which ext version?
11:59
<stephen>
Did I miss my answer?
12:00
<stephen>
Anyone else have trouble with btn sizes?
12:00
<stephen>
I know it sounds simple
12:01
<eekboom>
well, it would help if you mention your ext version
12:02
<eekboom>
also: what container is the button in and what is the container's layout?
12:02
<stephen>
Sure, ok. 4.0.7
12:02
<stephen>
It's the buttons in a bottom toolbar of a wincow
12:03
<stephen>
Basically, I'm doing a 3-4 upgrade
12:03
<stephen>
Window and button structures changed significantly I can tell
12:04
<stephen>
But what I don't understand is why passing the button a width property isn't doing it's job
12:04
<vto>
is there a way to create refs on the fly?
12:05
<stephen>
vto: Lookup .on
12:06
<vto>
.on is to register events as far as i know
12:06
<vto>
i dont get you
12:06
<eekboom>
hm, setting button width works for me
12:07
<eekboom>
(but I am already using 4.1 beta)
12:08
<eekboom>
vto: Why do you want to "create refs on the fly". What stephen meant is: Why don't you just register a listener instead?
12:45
<Theaxiom>
this is one thing I hate about Sencha Touch: Orderace.views.ordersViewOpenOrder.dockedItems.getAt(1).items.getAt(4).setText('$' + Number(Orderace.user.OrderTotal));
12:46
<Theaxiom>
javascript sucks, I feel like I am programming in BASIC
12:48
<Theaxiom>
20 PRINT "JavaScript is rediculous"
12:48
<Theaxiom>
30 GOTO 20
13:28
rafaelstanley joined
13:32
franciscallo joined
14:33
<gaius65>
How can I get the current panel html (the part which is changed by update()
14:38
<jebberjeb>
where should I put the scripts for my custom components w/ respect to the project root?
14:38
<jebberjeb>
I shouldn't put them in extjs/src/ux, should I?
15:20
<MarcGuay>
jebberjeb: I asked my father once at a baseball game where I should put my empty peanut shells and he said "shove em up your ass". Not sure if that's helpful to you or not.
15:34
<khmer>
i am approaching madness! when i destroy a TreePanel and try to recreate the same one, it somehow tries to reconstruct the destroyed object
15:34
<khmer>
and the columns i'm adding in initComponent get added again
15:37
<MarcGuay>
khmer: Sounds like fun. What functions are you using?
15:38
<khmer>
MarcGuay: i would describe it as fun for my enemies
15:38
<khmer>
MarcGuay: what functions? i'm not sure how to answer your question
15:38
<khmer>
MarcGuay: boy it's tough to jsfiddle ext component :)
15:38
<MarcGuay>
destroy() and then..?
15:39
<khmer>
actually i'm running .removeAll(true) on the parent container
15:39
<khmer>
and then .add() for a new component
15:40
<khmer>
and then when i remove that component, and try to .add() the first one, i get a "Cannot modify property 'dom' of null" error pretty deep in the call stack
15:40
<khmer>
and digging around, it looks like the column definitions are surviving when they shouldn't
15:40
<khmer>
i'm expecting a brand new instance when i call Ext.create() on a view, and instead i get a destroyed, old instance
15:41
<MarcGuay>
khmer: It's hard to picture. Are you using the MVC structure?
15:42
<khmer>
our base controller, an extension of Ext.Controller, has a createContentView method
15:42
<khmer>
that removes all objects from our PageView container and then adds a new object
15:43
<MarcGuay>
khmer: But when it removes and adds a new one it's not really destroying the old one..
15:43
<MarcGuay>
Strange.
15:43
<khmer>
or, it is, but it's not removing it?
15:44
<MarcGuay>
Maybe removing does really kill it..
15:44
<MarcGuay>
Need a bigger hammer?
15:44
<khmer>
the next time we try to create that view, we get a destroyed headercontainer object
15:44
<khmer>
yes, for my skull
15:45
<MarcGuay>
Ah, I see, removeAll on a component is equivalent to destroy()
15:45
<MarcGuay>
Oh, only if you send (true)
15:45
<MarcGuay>
Are you doing that?
15:46
<khmer>
i'm sure there's some ridiculous thing we're doing with our inheritance and our containers that is leaving something the methods don't know how to destroy
18:11
<vto>
i cant add a component to a view inside a constructor/initComponent at instantiation?