Bonjour,
je suis en train de developper un site web........
et dans une partie de mon site j'ai une grid dojo (version1.3)
voici le code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
<table dojoType="dojox.grid.DataGrid"
                           store="store" 
                           jsid="grid" 
                           id="grid"
                           style="width: 64em; height: 30em;"
                           rowSelector="20px"
                           clientSort="true" 
           columnReordering="true"                                                                             
                     >
                        <thead>
                            <tr>
                                <th field  ="id" 
                                     width ="150px"
                                  >
                                    id
                                 </th>
 
                                 <th 
                                     field     ="champs" 
                                     width     ="150px" 
                                     editable = "true"                                     
 
                                  >
                                    Champs
                                 </th>
 
                                 <th field    ="champs1" 
                                     width    ="150px"
                                     editable ="true"
                                     cellType ="dojox.grid.cells.Select"
                                     defaultValue="--- choisir ---"                                
                                     options = "val1,val2,...." 
 
                                 >                                
                                    champs1
                                 </th>
                                 <th field    ="champs2" 
                                     width    ="150px"
                                     editable ="true"
                                 >
                                     champs2
                                 </th>                                   
                            </tr>
                        </thead>
 
                    </table>
je veux une moyen pour Reordering les colonnes du grid et enregistrer la nouveau structure dans un cookie ????
j'ai pensé d'utiliser le methode setStructure de la dojox.grid.dataGrid.
mais je ne sais pas comment ??
merci de m'aider