erenault
21 Jul 2008, 2:23 AM
Hi,
I almost the same problem (http://extjs.com/forum/showthread.php?t=41343)
but it's for the data of the view.
The view doesn't display the data if the data is <script> getLabel('key1')</script> for example
The view display only the name of the column if used this
listeners: {
'beforeRender':{
fn: function(){
this.store.on( 'load', function(){
this.store.each(function(record) {
alert(record.id); // display id of row
record.fields.each(function(field){
alert(record.get(field.name)); //display name of column
});
});
}, this)
}
}
}
If I use "alert(record.get(field.getValues())); ", I've got [object Object] !!!
I would like to display the data of the column before load ?
Could someone help me ?
Thanks for avance
I almost the same problem (http://extjs.com/forum/showthread.php?t=41343)
but it's for the data of the view.
The view doesn't display the data if the data is <script> getLabel('key1')</script> for example
The view display only the name of the column if used this
listeners: {
'beforeRender':{
fn: function(){
this.store.on( 'load', function(){
this.store.each(function(record) {
alert(record.id); // display id of row
record.fields.each(function(field){
alert(record.get(field.name)); //display name of column
});
});
}, this)
}
}
}
If I use "alert(record.get(field.getValues())); ", I've got [object Object] !!!
I would like to display the data of the column before load ?
Could someone help me ?
Thanks for avance