Hybrid View
-
25 Jan 2009 12:01 AM #1
Need to readonly the column of Ext.grid.PropertyGrid
Need to readonly the column of Ext.grid.PropertyGrid
Hi,
I am using Ext.grid.PropertyGrid but when i am using this it servers value as editable column,
but i dont need it as editable column just readonly.i searched the doc i don't find any config
option to make this column readonly. can anyone give a suggestion?
Thanks in advance.
-
25 Jan 2009 2:08 AM #2
Return false to http://extjs.com/deploy/dev/docs/?cl...ber=beforeedit ?
Or configure it with
?Code:startEditing: Ext.emptyFn,
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
26 Jan 2009 12:42 AM #3
Thanks animal i got it ,also i have an another requirement to change the label of the
column header (Name and Value pair) in the grid,is there a way to change this column header?.
Thanks in advance
-
26 Jan 2009 1:05 AM #4Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
31 Jan 2009 12:43 AM #5
Hi ,
I am using setSource config option for my prop grid ,am not using column model,so how can i
change the column header(default name/value) into my custom columnname and value
headers
Thanks,
-
28 Sep 2009 5:25 AM #6
Hi JDevloper,
I am using the following extended property grid to set column headers and have a readyonly grid.
I hope this helpsCode:Ext.ns('Ext.ux.grid'); Ext.ux.grid.ReadOnlyPropertyGrid = Ext.extend(Ext.grid.PropertyGrid, { //private initComponent: function(){ //override if set if (!Ext.isEmpty(this.nameText)) { Ext.override(Ext.grid.PropertyColumnModel, { nameText: this.nameText }); } if (!Ext.isEmpty(this.valueText)) { Ext.override(Ext.grid.PropertyColumnModel, { valueText: this.valueText }); } //make the grid readonly this.on({ beforeedit: function(){ return false; }, scope: this }); } });


Reply With Quote