PDA

View Full Version : Some usefull examples



Rapotor
17 Jan 2008, 2:28 PM
Hello,

After a month of work with ExtJS, I would like to propose you a tutorial to help beginners. In fact, it's a summary of problems I had. All was resolved with very usefull docs and this forum but it take me a lot of time...
Then, I will maybe help some new ExtJS users (to sleep more the night :)) ) by this tutorial... I hope!

English:
http://extjs.com/learn/Tutorial:Some_Usefull_examples
(i will update it each time i will found a new usefull think)

French:
http://extjs.com/learn/Tutorial:Quelques_exemples_utiles
(j'updaterai

DragonFist
17 Jan 2008, 2:58 PM
Thanks, much of what I just saw in your tutorial, I have figured out on my own. However, I would have been really glad to have these examples a few months ago and I am sure those new to Ext now will find them useful.

Rapotor
18 Jan 2008, 1:20 AM
Yes, it was my goal! Some tricks are very simple to use but not always to find very fast. Every time win in research can be use to build any crazy new application \:D/

Regards,
C.

tof
18 Jan 2008, 6:22 AM
Hi !
Very good idead, indeed.
Actually this should be in a FAQ :)

My questions :

* For combo box, why do you use :
MyCombo.setValue(MyCombo.store.collect('id', true)[0]);
Instead of :
MyCombo.setValue(MyCombo.store.getAt(0).id);

It's incredibly slower (depending on the number of records).

* Also, for the grid, grid.selModel.selectFirstRow() is easier to read :)

* For the grid renderers, you should explain what is the 'params' argument for. Indeed, I spent much time before finding this one !

* Are you sure that window addons (shadow & co) aren't destroyed with the window itself ? And note that the default "closeAction" of a window is actually to close (and destroy) it.

Anyway, bravo, et very bonne initiative :p

eightiZ
18 Jan 2008, 6:46 AM
Bonjour,

Merci d'avance pour la traduction fran

Rapotor
18 Jan 2008, 7:13 AM
* For combo box, why do you use :
MyCombo.setValue(MyCombo.store.collect('id', true)[0]);
Instead of :
MyCombo.setValue(MyCombo.store.getAt(0).id);

Yes, you right! The correct code is :
MyCombo.setValue(MyCombo.store.getAt(0).data.id);



* Are you sure that window addons (shadow & co) aren't destroyed with the window itself ? And note that the default "closeAction" of a window is actually to close (and destroy) it.

I have test 'closeAction' property but with no success.
Maybe, It was a fault from me... I will test this evening.

I will update my tutorial this evening. Thanks tof !

eightiZ:
Je vais faire au plus vite, cela ne devrait pas me prendre trop de temps vu que c'est ma langue de base. Surveille ce topic !

Regards.

Rapotor
20 Jan 2008, 3:12 AM
I add the french version of my tutorial.


La version fran

kaki
22 Jan 2008, 5:21 AM
ah!thank you!:D

oshimin
24 Jan 2008, 1:36 PM
My English is null :">, which can help me for a D&D, grad a treeview item to a panel...
There is a group to define but I know do not please help me! I'm a new here... and i don't understand English i come from Gabon i speak French... learn in another language it's hard for me...

thanks for your help....

Rapotor
24 Jan 2008, 2:10 PM
oshimin,

Pour ajouter un item dans un panel (peut importe la nature de ton objet), il suffit qu'il soit dans la propri

jachable
18 Feb 2008, 3:23 PM
Thanks by the examples, my english is very bad but yours codes are very clear :)

Regards

swanandkumar
20 Feb 2008, 2:40 AM
thnks dear