|
|||||||
![]() |
|
|
Thread Tools |
|
#701
|
||||
|
||||
|
I'd choose another way: Bind the icon to a field and then update the field. Something like: icon-active, icon-disabled (visually faded with no handler).
__________________
Jozef Sakalos, aka Saki A lot of valuable info at: Saki's Extensions and Plugins Saki's Extensions and Plugins Docs Saki's Examples, Latest: Grid in Card Layout Saki's Blog, Featured: Writing a Big Application in Ext, Latest: What the hell is mon and mun? |
|
#702
|
|||
|
|||
|
If I wanted to set the iconClass dynamically, how can I get the specific action component?
Ext.getCmp('id of action icon').setIconClass('new-class');
|
|
#703
|
||||
|
||||
|
record.set('icon-cls-field-name', 'icon-cls-new-value')
__________________
Jozef Sakalos, aka Saki A lot of valuable info at: Saki's Extensions and Plugins Saki's Extensions and Plugins Docs Saki's Examples, Latest: Grid in Card Layout Saki's Blog, Featured: Writing a Big Application in Ext, Latest: What the hell is mon and mun? |
|
#704
|
|||
|
|||
|
Hi Saki,
Thanks for such a wonderful plugin. I have your plugin grid which has a column let's say INDUSTRY. a) This column needs to be readOnly in the grid view. b) On edit record action, this column needs to be rendered as a readonly textField ( or just a label) if the field is not dirty. d) On edit record action, when the row is still dirty , this column needs to be rendered as a comboBox c) On Add Record action, this column needs to be rendered as a ComboBox, so that user can select one of the industries. There is a very valid reason to do that, since I need to track the data binding. You can safely assume that the INDUSTRY is my primary key. How can I really do the above. I really hope this can be done. Any help would be great. Thanks, Raj |
|
#705
|
||||
|
||||
|
Take a look at ColumnModel::isCellEditable method.
__________________
Jozef Sakalos, aka Saki A lot of valuable info at: Saki's Extensions and Plugins Saki's Extensions and Plugins Docs Saki's Examples, Latest: Grid in Card Layout Saki's Blog, Featured: Writing a Big Application in Ext, Latest: What the hell is mon and mun? |
|
#706
|
|||
|
|||
|
Thanks Saki. I am using columns in-place. Changed the editable:false in the columnModel. I kept the editable:true for the combo-box editor which ofcourse as a result will now only show up in the recordForm panel. I think this is the right direction.
Please let me know if I should do things differently. Following is the code snippet . {
header:'Industry'
,dataIndex:'combo'
,width:75
,sortable:true
,editable:false
,editor:new Ext.form.ComboBox({
store:comboStore
,displayField:'state'
,valueField:'state'
,triggerAction:'all'
,mode:'local'
,editable:true
,lazyRender:true
,forceSelection:true
})
}
|
![]() |
| Thread Tools | |
|
|