-
6 Mar 2007 2:58 PM #1
(Bug?) EditorGrid and Ext.form.CheckBox on a Dialog
(Bug?) EditorGrid and Ext.form.CheckBox on a Dialog
When used in an EditorGrid (based upon the example "edit-grid.js"), Ext.form.Checkbox doesn't seem to work when rendered upon a dialog (BasicDialog or LayoutDialog).
I put some alerts down in Ext.form.Checkbox:
etValue, getValue.
what actually happens, is that the editor immediately flips out of edit-mode as soon as one dbl-clicks the field (too fast to see, but visible when using alert() since processing stops)
on one double-click of a checkbox, console.log log shows:
>setValue()
>setValue()
>getValue()
>setValue()
>setValue()
-
6 Mar 2007 3:29 PM #2
update
update
if you change form.Checkbox::onRender so that its defaultAutoCreate is type:'text', it'll render a textbox just fine. it won't render a checkbox though.
Code:onRender : function(ct){ if(!this.el){ this.defaultAutoCreate = { tag: "input", type: 'text', autocomplete: "off" }; } Ext.form.Checkbox.superclass.onRender.call(this, ct); this.wrap = this.el.wrap({cls: "x-form-check-wrap"}); },
-
6 Mar 2007 4:00 PM #3
Ext.Editor
Ext.Editor
the problem is related to Ext.Editor::onBlur.
if one disables this.completeEdit() here, the Ext.Checkbox will stay in edit-mode.
Code:onBlur : function(){ if(this.allowBlur !== true && this.editing){ this.completeEdit(); } },
-
7 Mar 2007 9:47 AM #4
Same with 'Field'
Same with 'Field'
I think I'm seeing the same thing with the Ext.form.Field. I have a custom selection that when I double click I see the dropdown for a brief moment and then it kicks out of edit mode.
I too am using this in a dialog, and it obviously doesn't happen with the edit-grid example.
Any suggestion on how to fix this? Field has it's own onBlur and it is different from what was shown in a previous post here.
Cheers,
Michael
Similar Threads
-
How to fill form in Dialog with values from JSON?
By Arikon in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 8 Jun 2012, 1:37 AM -
Form Checkbox event
By Charles in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 8 Mar 2007, 8:59 PM -
Basic Dialog Form plus submit example?
By rob30UK in forum Ext 1.x: Help & DiscussionReplies: 26Last Post: 13 Jan 2007, 9:11 AM -
Basic Dialog and form submit
By JC in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 21 Nov 2006, 12:44 AM


Reply With Quote