Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > JavaScript > Bibliothèques & Frameworks > Ext JS / Sencha
Ext JS / Sencha Ext JS / Sencha Forum d'entraide sur les frameworks Ext JS et Sencha. Avant de poster : FAQ ExtJS / Sencha, Toutes les FAQ JavaScript
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 25/07/2011, 11h47   #1
Nouveau Membre du Club
 
Ayoub Ayb
Inscription : août 2010
Messages : 75
Détails du profil
Informations personnelles :
Nom : Ayoub Ayb

Informations forums :
Inscription : août 2010
Messages : 75
Points : 37
Points : 37
Par défaut Probleme affichage grid

Bonjour ,

Le code suivant marche trés bien :
Code :
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
 
 
 
 
Ext.onReady(function(){
 
var win=new Ext.Window ( {
 
   title:' Gestion des éditions',
   width: 1034 ,
   length: 648,
 
	items: [{
        xtype: 'panel',
        height: 59
    },
	{
        xtype: 'panel',
        height: 363,
        layout: 'absolute',
        width: 1023,
        frame: true,
        tbar: {
            xtype: 'toolbar',
            items: [
                {
                    xtype: 'button',
                    text: 'Acceuil'
                },
                {
                    xtype: 'button',
                    text: 'Gestion d une édition'
                },
                {
                    xtype: 'button',
                    text: 'Administration'
                }
            ]
        },
        items: [
                {
                    xtype: 'fieldset',
                    title: 'Ajout d\'une édition',
                    width: 550,
                    height: 260,
                    x: 270,
                    y: 20,
                    layout: 'absolute',
 
                items: [
                                  {
									    xtype: 'label',
									    text: 'Application',
									    x: 30,
									    y: 120
									},
									{
									    xtype: 'label',
									    text: 'Domaine',
									    width: 50,
									    x: 30,
									    y: 150
									},
									{
									    xtype: 'label',
									    text: 'Date création',
									    x: 30,
									    y: 90
									},
									{
									    xtype: 'label',
									    text: 'Type édition',
									    x: 30,
									    y: 60
									},
									{
									    xtype: 'label',
									    text: 'Libellé',
									    x: 320,
									    y: 30
									},
									{
									    xtype: 'label',
									    text: 'Identifiant',
									    x: 30,
									    y: 30
									},
 
									{
									    xtype: 'label',
									    text: 'Chemin template',
									    x: 30,
									    y: 180
									},
									{
									    xtype: 'label',
									    text: 'Programme',
									    x: 320,
									    y: 120
									},
									{
									    xtype: 'textfield',
									    x: 380,
									    y: 20
									},
									{
									    xtype: 'datefield',
									    x: 120,
									    y: 80,
									    width: 130
									},
									{
									    xtype: 'combo',
									    x: 120,
									    y: 50,
									    width: 130
									},
									{
									    xtype: 'combo',
									    x: 120,
									    y: 140,
									    width: 130
									},
									{
									    xtype: 'combo',
									    x: 380,
									    y: 110,
									    width: 130
									},
									{
									    xtype: 'combo',
									    x: 120,
									    y: 110,
									    width: 130
									},
									{
									    xtype: 'textfield',
									    x: 120,
									    y: 170
									},
									{
									    xtype: 'textfield',
									    x: 120,
									    y: 20
										},
										{
									    xtype: 'button',
									    text: 'Parcourir',
									    x: 250,
									    y: 170
										}
						      ] },
						      {
			                        xtype: 'panel',
			                        x: -2,
			                        y: 0,
			                        width: 90,
			                        height: 320,
			                        frame: true,
			                        layout: 'accordion',
			                        items: [
			                            {
			                                xtype: 'panel',
			                                title: 'My Panel'
			                            },
			                            {
			                                xtype: 'panel',
			                                title: 'My Panel'
			                            },
			                            {
			                                xtype: 'panel',
			                                title: 'My Panel'
			                            }
			                        ]
			                    },
			                    {
			                        xtype: 'button',
			                        text: 'Valider',
			                        x: 500,
			                        y: 290,
			                        width: 60,
			                        height: 30
			                    },
			                    {
			                        xtype: 'button',
			                        text: 'Annuler',
			                        x: 580,
			                        y: 290,
			                        width: 60,
			                        height: 30
			                    } 
			                ]	       
			                  }
 
 
 
	        ]
 
 
 
 
 
 
 
 
});
win.show();
 
 
 
 
 
 
});
mais quand je modifie le code ci-dessus pour afficher une Grid ..une page blanche s'affiche lors de l'excution :s :s
Code :
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
Ext.onReady(function(){
	
var win=new Ext.Window ( {
	
   title:' Gestion des éditions',
   width: 1034 ,
   length: 648,

	items: [{
        xtype: 'panel',
        height: 59
    },
	{
        xtype: 'panel',
        height: 363,
        layout: 'absolute',
        width: 1023,
        frame: true,
        tbar: {
            xtype: 'toolbar',
            items: [
                {
                    xtype: 'button',
                    text: 'Acceuil'
                },
                {
                    xtype: 'button',
                    text: 'Gestion d une édition'
                },
                {
                    xtype: 'button',
                    text: 'Administration'
                }
            ]
        },
        items: [
                {
                    xtype: 'fieldset',
                    title: 'Ajout d\'une édition',
                    width: 550,
                    height: 260,
                    x: 270,
                    y: 20,
                    layout: 'absolute',
                
                items: [
                                  {
									    xtype: 'label',
									    text: 'Application',
									    x: 30,
									    y: 120
									},
									{
									    xtype: 'label',
									    text: 'Domaine',
									    width: 50,
									    x: 30,
									    y: 150
									},
									{
									    xtype: 'label',
									    text: 'Date création',
									    x: 30,
									    y: 90
									},
									{
									    xtype: 'label',
									    text: 'Type édition',
									    x: 30,
									    y: 60
									},
									{
									    xtype: 'label',
									    text: 'Libellé',
									    x: 320,
									    y: 30
									},
									{
									    xtype: 'label',
									    text: 'Identifiant',
									    x: 30,
									    y: 30
									},
									
									{
									    xtype: 'label',
									    text: 'Chemin template',
									    x: 30,
									    y: 180
									},
									{
									    xtype: 'label',
									    text: 'Programme',
									    x: 320,
									    y: 120
									},
									{
									    xtype: 'textfield',
									    x: 380,
									    y: 20
									},
									{
									    xtype: 'datefield',
									    x: 120,
									    y: 80,
									    width: 130
									},
									{
									    xtype: 'combo',
									    x: 120,
									    y: 50,
									    width: 130
									},
									{
									    xtype: 'combo',
									    x: 120,
									    y: 140,
									    width: 130
									},
									{
									    xtype: 'combo',
									    x: 380,
									    y: 110,
									    width: 130
									},
									{
									    xtype: 'combo',
									    x: 120,
									    y: 110,
									    width: 130
									},
									{
									    xtype: 'textfield',
									    x: 120,
									    y: 170
									},
									{
									    xtype: 'textfield',
									    x: 120,
									    y: 20
										},
										{
									    xtype: 'button',
									    text: 'Parcourir',
									    x: 250,
									    y: 170
										}
						      ] },
						      {
			                        xtype: 'panel',
			                        x: -2,
			                        y: 0,
			                        width: 90,
			                        height: 320,
			                        frame: true,
			                        layout: 'accordion',
			                        items: [
			                            {
			                                xtype: 'panel',
			                                title: 'My Panel'
			                            },
			                            {
			                                xtype: 'panel',
			                                title: 'My Panel'
			                            },
			                            {
			                                xtype: 'panel',
			                                title: 'My Panel'
			                            }
			                        ]
			                    },
			                    {
			                        xtype: 'button',
			                        text: 'Valider',
			                        x: 500,
			                        y: 290,
			                        width: 60,
			                        height: 30
			                    },
			                    {
			                        xtype: 'button',
			                        text: 'Annuler',
			                        x: 580,
			                        y: 290,
			                        width: 60,
			                        height: 30
			                    } 
			                ]	       
			                  },
           // code ajoutée par rapport l autre code 
			                  {
			                  	xtype: 'grid',
			                  	title: 'Liste',
			                  	columns: [
			                  	          { xtype: 'gridcolumn',
			                  	          dataIndex: 'string',
			                  	          header: 'Column',
			                  	          sortable: true,
			                  	          width: 100    
			                  	          }
			                  	          ]
			                  	          
			                  	          
			                  	          
			                  	
			                  }
			                  
    
    
    
    
	        ]
	
	
	
	
	
	
	
	
});
win.show();






});
ayoubkira est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 10h46   #2
Membre confirmé
 
Homme
Étudiant
Inscription : mai 2007
Messages : 250
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 35
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : mai 2007
Messages : 250
Points : 241
Points : 241
Bonjour,

Est ce que tu utilise firebug (plug-in de firefox) ?
Si oui, as tu une erreur dans firebug ?
abraxis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 10h54   #3
Nouveau Membre du Club
 
Ayoub Ayb
Inscription : août 2010
Messages : 75
Détails du profil
Informations personnelles :
Nom : Ayoub Ayb

Informations forums :
Inscription : août 2010
Messages : 75
Points : 37
Points : 37
Ouiii :

Erreur : this.ds is undefined
ayoubkira est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 11h03   #4
Membre confirmé
 
Homme
Étudiant
Inscription : mai 2007
Messages : 250
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 35
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : mai 2007
Messages : 250
Points : 241
Points : 241
Il te manque un store dans ton grid ^^
abraxis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 11h04   #5
Nouveau Membre du Club
 
Ayoub Ayb
Inscription : août 2010
Messages : 75
Détails du profil
Informations personnelles :
Nom : Ayoub Ayb

Informations forums :
Inscription : août 2010
Messages : 75
Points : 37
Points : 37
Quand je le met , ils me disent : store undefined :s
ayoubkira est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 11h09   #6
Membre confirmé
 
Homme
Étudiant
Inscription : mai 2007
Messages : 250
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 35
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : mai 2007
Messages : 250
Points : 241
Points : 241
Tu dois déclarer ton store avant la construction de ton window.

Code :
1
2
3
4
5
6
7
8
var monStore = new Ext.data.JsonStore({
	storeId: 'monStoreId',
	url: 'maPage.php',
	root: 'data',
	fields: [
		'monDataIndex'
	]
});
et dans ton grid tu appel ton store comme ça :
ou
abraxis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 11h14   #7
Nouveau Membre du Club
 
Ayoub Ayb
Inscription : août 2010
Messages : 75
Détails du profil
Informations personnelles :
Nom : Ayoub Ayb

Informations forums :
Inscription : août 2010
Messages : 75
Points : 37
Points : 37
L errer exact est : this.store is undefined
ayoubkira est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 11h15   #8
Membre confirmé
 
Homme
Étudiant
Inscription : mai 2007
Messages : 250
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 35
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : mai 2007
Messages : 250
Points : 241
Points : 241
peux tu remettre ton code entier stp ?
abraxis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 11h16   #9
Nouveau Membre du Club
 
Ayoub Ayb
Inscription : août 2010
Messages : 75
Détails du profil
Informations personnelles :
Nom : Ayoub Ayb

Informations forums :
Inscription : août 2010
Messages : 75
Points : 37
Points : 37
maPage.php qu'est ce que elle doit contenir ?? parce que j utilise java et non pas php



Merci
ayoubkira est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 11h18   #10
Membre confirmé
 
Homme
Étudiant
Inscription : mai 2007
Messages : 250
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 35
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : mai 2007
Messages : 250
Points : 241
Points : 241
Peu importe le format de ta page, elle doit contenir les données que tu dis retourner au format Json pour les afficher dans le grid.
Pour tester si ton Json est valide je te conseil ce site:
http://jsonlint.com/
abraxis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 11h20   #11
Nouveau Membre du Club
 
Ayoub Ayb
Inscription : août 2010
Messages : 75
Détails du profil
Informations personnelles :
Nom : Ayoub Ayb

Informations forums :
Inscription : août 2010
Messages : 75
Points : 37
Points : 37
Voila mon code : tu vas trouver la partie de " Grid " à la fin
Code :
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
Ext.onReady(function(){
 
var win=new Ext.Window ( {
 
   title:' Gestion des éditions',
   width: 1034 ,
   length: 648,
 
	items: [{
        xtype: 'panel',
        height: 59
    },
	{
        xtype: 'panel',
        height: 363,
        layout: 'absolute',
        width: 1023,
        frame: true,
        tbar: {
            xtype: 'toolbar',
            items: [
                {
                    xtype: 'button',
                    text: 'Acceuil'
                },
                {
                    xtype: 'button',
                    text: 'Gestion d une édition'
                },
                {
                    xtype: 'button',
                    text: 'Administration'
                }
            ]
        },
        items: [
                {
                    xtype: 'fieldset',
                    title: 'Ajout d\'une édition',
                    width: 550,
                    height: 260,
                    x: 270,
                    y: 20,
                    layout: 'absolute',
 
                items: [
                                  {
									    xtype: 'label',
									    text: 'Application',
									    x: 30,
									    y: 120
									},
									{
									    xtype: 'label',
									    text: 'Domaine',
									    width: 50,
									    x: 30,
									    y: 150
									},
									{
									    xtype: 'label',
									    text: 'Date création',
									    x: 30,
									    y: 90
									},
									{
									    xtype: 'label',
									    text: 'Type édition',
									    x: 30,
									    y: 60
									},
									{
									    xtype: 'label',
									    text: 'Libellé',
									    x: 320,
									    y: 30
									},
									{
									    xtype: 'label',
									    text: 'Identifiant',
									    x: 30,
									    y: 30
									},
 
									{
									    xtype: 'label',
									    text: 'Chemin template',
									    x: 30,
									    y: 180
									},
									{
									    xtype: 'label',
									    text: 'Programme',
									    x: 320,
									    y: 120
									},
									{
									    xtype: 'textfield',
									    x: 380,
									    y: 20
									},
									{
									    xtype: 'datefield',
									    x: 120,
									    y: 80,
									    width: 130
									},
									{
									    xtype: 'combo',
									    x: 120,
									    y: 50,
									    width: 130
									},
									{
									    xtype: 'combo',
									    x: 120,
									    y: 140,
									    width: 130
									},
									{
									    xtype: 'combo',
									    x: 380,
									    y: 110,
									    width: 130
									},
									{
									    xtype: 'combo',
									    x: 120,
									    y: 110,
									    width: 130
									},
									{
									    xtype: 'textfield',
									    x: 120,
									    y: 170
									},
									{
									    xtype: 'textfield',
									    x: 120,
									    y: 20
										},
										{
									    xtype: 'button',
									    text: 'Parcourir',
									    x: 250,
									    y: 170
										}
						      ] },
						      {
			                        xtype: 'panel',
			                        x: -2,
			                        y: 0,
			                        width: 90,
			                        height: 320,
			                        frame: true,
			                        layout: 'accordion',
			                        items: [
			                            {
			                                xtype: 'panel',
			                                title: 'My Panel'
			                            },
			                            {
			                                xtype: 'panel',
			                                title: 'My Panel'
			                            },
			                            {
			                                xtype: 'panel',
			                                title: 'My Panel'
			                            }
			                        ]
			                    },
			                    {
			                        xtype: 'button',
			                        text: 'Valider',
			                        x: 500,
			                        y: 290,
			                        width: 60,
			                        height: 30
			                    },
			                    {
			                        xtype: 'button',
			                        text: 'Annuler',
			                        x: 580,
			                        y: 290,
			                        width: 60,
			                        height: 30
			                    } 
			                ]	       
			                  },
           // code ajoutée par rapport l autre code 
			                  {
			                  	xtype: 'grid',
			                  	title: 'Liste',
			                  	columns: [
			                  	          { xtype: 'gridcolumn',
			                  	          dataIndex: 'string',
			                  	          header: 'Column',
			                  	          sortable: true,
			                  	          width: 100    
			                  	          }
			                  	          ]
 
 
 
 
			                  }
 
 
 
 
 
	        ]
 
 
 
 
 
 
 
 
});
win.show();
 
 
 
 
 
 
});
ayoubkira est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 11h21   #12
Membre confirmé
 
Homme
Étudiant
Inscription : mai 2007
Messages : 250
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 35
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : mai 2007
Messages : 250
Points : 241
Points : 241
Il n'y a pas le store dans le grid.

Ceci chez moi tourne très bien.
Code :
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
Ext.onReady(function(){
 
var monStore = new Ext.data.JsonStore({
	storeId: 'monStoreId',
	url: 'maPage.php',
	root: 'data',
	fields: [
		'monDataIndex'
	]
});
 
var win = new Ext.Window ( {
	title:' Gestion des éditions',
	width: 1034 ,
	length: 648,
	items: [
		{
			xtype: 'panel',
			height: 59
		},
		{
			xtype: 'panel',
			height: 363,
			layout: 'absolute',
			width: 1023,
			frame: true,
			tbar: {
				xtype: 'toolbar',
				items: [
					{
						xtype: 'button',
						text: 'Acceuil'
					},
					{
						xtype: 'button',
						text: 'Gestion d une édition'
					},
					{
						xtype: 'button',
						text: 'Administration'
					}
				]
			},
			items: [
				{
					xtype: 'fieldset',
					title: 'Ajout d\'une édition',
					width: 550,
					height: 260,
					x: 270,
					y: 20,
					layout: 'absolute',                
					items: [
						{
							xtype: 'label',
							text: 'Application',
							x: 30,
							y: 120
						},
						{
							xtype: 'label',
							text: 'Domaine',
							width: 50,
							x: 30,
							y: 150
						},
						{
							xtype: 'label',
							text: 'Date création',
							x: 30,
							y: 90
						},
						{
							xtype: 'label',
							text: 'Type édition',
							x: 30,
							y: 60
						},
						{
							xtype: 'label',
							text: 'Libellé',
							x: 320,
							y: 30
						},
						{
							xtype: 'label',
							text: 'Identifiant',
							x: 30,
							y: 30
						},
						{
							xtype: 'label',
							text: 'Chemin template',
							x: 30,
							y: 180
						},
						{
							xtype: 'label',
							text: 'Programme',
							x: 320,
							y: 120
						},
						{
							xtype: 'textfield',
							x: 380,
							y: 20
						},
						{
							xtype: 'datefield',
							x: 120,
							y: 80,
							width: 130
						},
						{
							xtype: 'combo',
							x: 120,
							y: 50,
							width: 130
						},
						{
							xtype: 'combo',
							x: 120,
							y: 140,
							width: 130
						},
						{
							xtype: 'combo',
							x: 380,
							y: 110,
							width: 130
						},
						{
							xtype: 'combo',
							x: 120,
							y: 110,
							width: 130
						},
						{
							xtype: 'textfield',
							x: 120,
							y: 170
						},
						{
							xtype: 'textfield',
							x: 120,
							y: 20
						},
						{
							xtype: 'button',
							text: 'Parcourir',
							x: 250,
							y: 170
						}
					] 
				},
				{
					xtype: 'panel',
					x: -2,
					y: 0,
					width: 90,
					height: 320,
					frame: true,
					layout: 'accordion',
					items: [
						{
							xtype: 'panel',
							title: 'My Panel'
						},
						{
							xtype: 'panel',
							title: 'My Panel'
						},
						{
							xtype: 'panel',
							title: 'My Panel'
						}
					]
				},
				{
					xtype: 'button',
					text: 'Valider',
					x: 500,
					y: 290,
					width: 60,
					height: 30
				},
				{
					xtype: 'button',
					text: 'Annuler',
					x: 580,
					y: 290,
					width: 60,
					height: 30
				} 
			]	       
		}
		//*
		,
						 // code ajoutée par rapport l autre code 
		{
			xtype: 'grid',
			title: 'Liste',
			store: monStore,
			columns: [
				{ 
					xtype: 'gridcolumn',
					dataIndex: 'monDataIndex',
					header: 'Column',
					sortable: true,
					width: 100    
				}
			]
		}
		//*/
	]
});
win.show();
});
abraxis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 11h22   #13
Nouveau Membre du Club
 
Ayoub Ayb
Inscription : août 2010
Messages : 75
Détails du profil
Informations personnelles :
Nom : Ayoub Ayb

Informations forums :
Inscription : août 2010
Messages : 75
Points : 37
Points : 37
:s :s j'utilise le framework dwr pour envoyer les données et non pas Json :s :s
ayoubkira est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 11h32   #14
Nouveau Membre du Club
 
Ayoub Ayb
Inscription : août 2010
Messages : 75
Détails du profil
Informations personnelles :
Nom : Ayoub Ayb

Informations forums :
Inscription : août 2010
Messages : 75
Points : 37
Points : 37
Merci ....J'ai pu afficher mon Grid ...

Stp tu peux me dire à quoi sert le Json et est ce que je peux l'utiliser avec dwr ???
ayoubkira est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 11h34   #15
Membre confirmé
 
Homme
Étudiant
Inscription : mai 2007
Messages : 250
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 35
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : mai 2007
Messages : 250
Points : 241
Points : 241
Ne sachant pas si je peu donner une lien vers un autre site sur le forum je t'envoie un MP sur le DWR et extjs
abraxis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/07/2011, 11h42   #16
Nouveau Membre du Club
 
Ayoub Ayb
Inscription : août 2010
Messages : 75
Détails du profil
Informations personnelles :
Nom : Ayoub Ayb

Informations forums :
Inscription : août 2010
Messages : 75
Points : 37
Points : 37
Merciiiii
ayoubkira est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 11h59.


 
 
 
 
Partenaires

Hébergement Web