View Full Version : Property Grid

29 Aug 2010, 11:26 PM
How to create the choice list in this grid?
For example:

var test = new Ext.grid.PropertyGrid({
width: 300,
autoHeight: true,
source: {
"Name": ["Value1", "Value2", "Value3"],
viewConfig : {
forceFit: true,
scrollOffset: 2
});As such to make, tell please

29 Aug 2010, 11:42 PM
You will need to define both a customRenderers renderer (to display the value) and a customEditors editor (to edit the value - an LOVCombo?).

30 Aug 2010, 12:12 AM
You excuse, I badly understand English, therefore it is difficult to disassemble your offer.
Tell please more in detail or set an example.

30 Aug 2010, 7:21 AM
set "customEditors" and "customRenderers" in your PropertyGrid config

here there is a sample code found on docs,

var grid = new Ext.grid.PropertyGrid({
customEditors: {
'Start Time': new Ext.grid.GridEditor(new Ext.form.TimeField({selectOnFocus:true}))
customRenderers: {
Available: function(v){
return '"color: green;">Yes';
return '"color: red;">No';
source: {
'Start Time': '10:00 AM',
Available: true

13 Sep 2010, 5:49 PM
Tell me, if I want their value, not time. What should I do?

19 Sep 2010, 12:44 PM
you can use a combobox as an editor. and if you want the value not the text, dont set hiddenXXX properties...