Salut,
j'ai une dojox.grid.dataGrid :
et jai une fonction qui me permet de mettre des lignes ds la grid gris :
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 <table dojoType="dojox.grid.DataGrid" store="gridStore" jsid="myGrid" id="myGrid" style="width: 100em; height: 50em;" onStyleRow = "styleRowsGrid"> <thead> <tr> <th field="id" width="150px"> id </th> <th field="nom" width="150px"> nom</th> <th field="prenom" width="150px"> prenom</th> <th field="groupe" width="150px"> groupe</th> </thead> </table>
mais moi je veux ou lieu de mettre les ligne gris , je veux desactiver ces lignes c'est a dire de les mettre disabled
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 function styleRowsGrid(row) { var item = this.getItem(row.index); var idGroupeCourant = dijit.byId('listGroupe').value; if (item.groupe != idGroupeCourant) { //row.customStyles += "disabled:true;"; //row.customStyles += "disabled:disabled;"; row.customStyles += "background-color:#DCDCDC"; this.focus.styleRow(row); this.edit.styleRow(row); } }
merci de m'aider![]()
Partager