PDA

View Full Version : Changing the visible rows of a PropertyGrid?



himynameiznate
13 Sep 2007, 10:31 AM
Hi there,
I'm trying to set up a PropertyGrid with Ext 1.1, and I have a data store all set up with all of the data I need stored for a particular item, but I don't want all of the data to be editable (or even visible among the rows).
Is there a way I can set the data store to contain all of the data, but to not display all of the properties of that data store?

Thanks in advance!

para
14 Sep 2007, 6:15 AM
Yes, you can hide rows in a grid.
I do something like this:


grid.getView().getRowClass = function(row, index) {
if(row.data.hiddenRow) { // or whatever criteria for hiding rows
return 'hide-this-row';
}
};

// in the stylesheet
.hide-this-row {
display: none;
}


This should work for you.

himynameiznate
17 Sep 2007, 11:59 AM
Awesome, thank you very much!