Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > JavaScript > Bibliothèques & Frameworks > Dojo
Dojo Forum d'entraide sur le framework Dojo
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 30/06/2011, 21h49   #1
 
Homme
Développeur Web
Inscription : juin 2011
Messages : 1
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : Canada

Informations professionnelles :
Activité : Développeur Web
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : juin 2011
Messages : 1
Points : -1
Points : -1
Par défaut dojox.grid.DataGrid formatte les mauvaises colonnes

J'utilise un dojox.grid.DataGrid avec 3 colonnes formattées. La première s'associe au bon item, mais les 2 autres formatteurs affectent les mauvaises.

J'initialise tout programmatiquement en JavaScript comme ci-dessous. Toute aide à comprendre pourquoi le premier formatteur s'applique à la bonne ligne (horizontale) mais les 2 autres non serait grandement appréciée!


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
function fmtAct(value,rowIndex){
		return objCtrl.formatActions(value,rowIndex);
	}
	function fmtEdLnk(value,rowIndex){
		return objCtrl.formatEditLink(value,rowIndex);
	}
	function fmtDescr(value,rowIndex){
		return objCtrl.formatDescription(value,rowIndex);
	}
 
	var layout = [
		{ type : "dojox.grid._CheckBoxSelector" },
		{
			cells : [
					{ field: "actions", name: labels.actions,
						formatter : fmtAct,
						width: "65px", noresize: true
					},
					{ field: "name", name: labels.name,
						formatter : fmtEdLnk,
						width: "auto", noresize: true, editable: true, style: "overflow:hidden;white-space:nowrap;"
					},
					{ field: "desc", name: labels.description,
						formatter : fmtDescr,
					width: "200px", editable: true }
			]
		}
	];
 
	grid = new dojox.grid.DataGrid({
		query: { pos_num: '*' },
		store: objCtrl.itemFWStore,
		structure: layout,
		canSort: noSort,
		autoHeight: true,
		width: "720px",
		rowsPerPage: 200
	}, objCtrl.gridNodeID);
 
 
	if ( grid != null ) {
		objCtrl.grid = grid;
		grid.startup();
	  	grid.store.close();
		grid.setSortIndex(0, true);
		grid.sort();
		grid.update();
		grid.resize();
	}
rtropper est déconnecté   Envoyer un message privé Réponse avec citation 01
Vieux 20/09/2011, 11h26   #2
Membre habitué
 
Homme Bernard Le Roux
Développeur informatique
Inscription : octobre 2005
Messages : 128
Détails du profil
Informations personnelles :
Nom : Homme Bernard Le Roux
Localisation : France, Côte d'Or (Bourgogne)

Informations professionnelles :
Activité : Développeur informatique
Secteur : Service public

Informations forums :
Inscription : octobre 2005
Messages : 128
Points : 133
Points : 133
je pense qu'il faudrait avoir plus de code
Le Roux B. est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 03h53.


 
 
 
 
Partenaires

Hébergement Web