View Full Version : I don't read the row of PropertyGrid....

10 Sep 2009, 12:42 AM
I create a "Ext.grid.PropertyGrid", but I not succeed to read the row of propertyGrid.....

the code of PropertyGrid is:

new Ext.TabPanel({
tabPosition: 'bottom',
new Ext.Button({
text: 'Modifica Dati',
tooltip: 'Modifica Dati',
iconCls: 'invio',
items: [
new Ext.grid.PropertyGrid({
title: 'Property Grid',
closable: true,
source: {
"(name)": "Properties Grid",
"grouping": false,
"autoFitColumns": true,
"productionQuality": false,
"created": new Date(Date.parse('10/15/2006')),
"tested": false,
"version": 0.01,
"borderWidth": 1

the code of "pippo_fun" function is:

var pippofun=function(pp){
var sourcePP=pp.getSource();
alert('version: '+sourcePP.get("version"));

I read in the Api doc that "getSource": Gets the source data object containing the property data.

I'd like to read the rows of the grid after the user has changed its.

Anyone know give me directions?

10 Sep 2009, 1:26 AM
getSource() returns an object keyed by the property name, e.g.

var sourcePP=pp.getSource();
alert('version: '+sourcePP["version"]);

10 Sep 2009, 7:13 AM
I update the code, but this don't run.....the code is identical to that of the post, has more than just Ext.Viewport...mah???

10 Sep 2009, 7:55 AM
the problem is variable "PP". If I enter the function code in handler:function(){}, the application run correctly, but if I create the indipendent function and pass variable PP, the application don't run correctly.

could you suggest a work around?

10 Sep 2009, 11:47 AM
Read the API docs about the difference between Ext.get() and Ext.getCmp().

10 Sep 2009, 10:24 PM
yes,thanks.....My thesis is really damaging to my mind....