<   January 2012   >
Su Mo Tu We Th Fr Sa
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
00:14 Dark_Rift joined
00:34 jonathanochs joined
00:51 MarcGuay joined
01:20 ArthurD joined
01:33 SamuraiJack joined
01:42 Junior joined
01:42 <Junior> yello ;)
02:25 jaafar joined
02:43 MarcGuay joined
02:46 Tweeq joined
02:58 swe_ET joined
03:01 HyGy joined
03:09 reellsid joined
03:36 Denyerec joined
03:51 nd_______ joined
03:59 stodan joined
04:00 jonathanochs joined
04:06 Theaxiom2 joined
04:06 tweequla joined
04:14 houssein joined
04:22 MarcGuay joined
04:25 CyberDuck joined
04:37 HyGy joined
04:42 martinfilliau joined
04:44 maritz joined
04:54 soee 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:13 soc42 joined
05:25 <maritz> soee: nah, sorry. haven't done drag'n'drop with ext yet
05:28 kwk joined
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.
05:47 boonkerz joined
06:00 CyberDuck joined
06:10 blaa joined
06:23 MarcGuay joined
06:28 kreantos joined
06:29 skython joined
07:16 kwk left
07:32 HyGy joined
07:36 GyroB joined
07:37 <GyroB> hi there
07:37 <GyroB> it is possible to have an actioncolumn that renders and icon depending of something?
07:37 <GyroB> an*
07:38 MarcGuay joined
07:41 syao joined
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:45 <GyroB> :P
07:47 <syao> it should be "node"?
07:48 <syao> in the model?
07:49 <GyroB> uhmmmmm
07:49 ardeay joined
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 grEvenX joined
08:03 <syao> p.s. I got doubled values
08:04 <syao> 2 folders same name
08:05 <GyroB> xD
08:05 <GyroB> cant look closer right now
08:06 <GyroB> but if its empty do a defaultvalue too
08:06 <GyroB> maybe..
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:18 <GyroB> sry
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 <HyGy> yes
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> {
08:28 <HyGy> if (record.get('statusFlag')=='D')
08:28 <HyGy> { return 'category-list-item-reactivate'; }
08:28 <HyGy> else
08:28 <HyGy> { return 'category-list-item-action'; }
08:28 <HyGy> },
08:28 <HyGy> mybe this way I think you can do it
08:28 kreantos joined
08:28 <syao> how to set node value in php code generating json query
08:36 HyGy joined
08:38 <syao> hygy, could you check my code a bit, its short
08:38 HyGy1 joined
08:39 <syao> could anyone help me?
08:45 vto joined
08:47 <GyroB> [HyGy1] ty but i found something with getClass
08:47 <GyroB> http://www.learnsomethings.com/2011/09/25/the-new-extjs4-xtype-actioncolumn-in-a-nutshell/
08:47 <GyroB> not bad
08:49 <HyGy1> ;)
08:49 <HyGy1> I think that is the source for my example what I pasted.
08:50 <GyroB> nah
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.
09:05 MarcGuay joined
10:17 Hexarobi joined
10:17 nibblebot joined
10:18 newcode joined
10:23 eekboom joined
10:24 <eekboom> hi folks! Short ST2 question: How do I prevent the address bar from being hidden when the app loads?
10:25 storrgie joined
10:26 robbyoconnor joined
10:32 SamuraiJack 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
10:45 boonkerz joined
10:56 skor joined
11:01 stephen joined
11:03 kreantos_ joined
11:10 boonkerz_ joined
11:15 Junior joined
11:24 boonkerz joined
11:28 Junior joined
11:28 Junior joined
11:33 jonathanochs joined
11:33 Junior joined
11:33 Junior joined
11:34 Junior joined
11:34 Junior joined
11:47 <stephen> Grr....
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> hmm
11:49 <eekboom> which ext version?
11:57 nibblebo_ joined
11:59 stephen left
11:59 stephen joined
11:59 <stephen> Did I miss my answer?
11:59 <stephen> Crap
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:02 <stephen> window
12:03 MatPV joined
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:10 alvaro_o joined
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> 10 CLS
12:48 <Theaxiom> 20 PRINT "JavaScript is rediculous"
12:48 <Theaxiom> 30 GOTO 20
12:54 r0bby joined
12:56 nibblebot joined
13:07 patcito joined
13:14 nibblebo_ joined
13:28 patcito joined
13:28 rafaelstanley joined
13:28 spikie joined
13:28 Theaxiom joined
13:28 Lost joined
13:29 skython joined
13:31 storrgie joined
13:31 ph8 joined
13:32 franciscallo joined
13:56 Junior joined
13:56 Junior joined
14:09 topping joined
14:10 r0bby joined
14:13 nitrogenycs joined
14:26 nitrogenycs joined
14:33 gaius65 joined
14:33 <gaius65> Hi!
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:02 kreantos joined
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:25 patcito joined
15:33 khmer joined
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 nibblebot joined
15:41 <MarcGuay> khmer: It's hard to picture. Are you using the MVC structure?
15:42 <khmer> i am
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 <khmer> exactly.
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:44 nitrogenycs left
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:45 <khmer> yes
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
15:48 tla joined
16:05 MatPV joined
16:07 boonkerz joined
16:21 vto joined
16:43 blaa joined
17:01 nibblebot joined
17:43 sasori joined
17:59 tla joined
18:11 <vto> i cant add a component to a view inside a constructor/initComponent at instantiation?
18:30 gaius65 joined
18:39 vvidovic joined
18:50 nibblebot joined
18:51 skython joined
18:52 boonkerz joined
19:17 sroussey joined
19:21 digitalfiz joined
19:23 [[zzz]] joined
19:36 topping1 joined
19:40 vto joined
19:43 topping1 joined
19:47 blaa joined
19:49 blaa joined
19:54 topping joined
19:56 topping2 joined
19:58 gaius65 left
20:02 thews joined
20:21 boonkerz joined
21:03 blaa joined
21:03 boonkerz joined
21:18 boonkerz joined
21:59 orospakr joined
21:59 orospakr joined
22:01 orospakr joined
22:03 boonkerz joined
22:14 orospakr joined
22:24 orospakr joined
22:33 nibblebot joined
22:43 orospakr joined
23:02 r0bby joined
23:02 r0bby joined
23:18 boonkerz joined
23:22 r0bby joined
23:28 orospakr joined
23:45 blaa joined