1. #1
    Ext JS Premium Member christocracy's Avatar
    Join Date
    Oct 2006
    Location
    Montreal
    Posts
    381
    Vote Rating
    0
    christocracy is on a distinguished road

      0  

    Default (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()

  2. #2
    Ext JS Premium Member christocracy's Avatar
    Join Date
    Oct 2006
    Location
    Montreal
    Posts
    381
    Vote Rating
    0
    christocracy is on a distinguished road

      0  

    Default 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"});
        },

  3. #3
    Ext JS Premium Member christocracy's Avatar
    Join Date
    Oct 2006
    Location
    Montreal
    Posts
    381
    Vote Rating
    0
    christocracy is on a distinguished road

      0  

    Default 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();
          }
    },

  4. #4
    Ext JS Premium Member miguel_eduardo's Avatar
    Join Date
    Mar 2007
    Location
    Ottawa, Canada
    Posts
    23
    Vote Rating
    0
    miguel_eduardo is on a distinguished road

      0  

    Default 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

  1. How to fill form in Dialog with values from JSON?
    By Arikon in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 8 Jun 2012, 1:37 AM
  2. Form Checkbox event
    By Charles in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 8 Mar 2007, 8:59 PM
  3. Basic Dialog Form plus submit example?
    By rob30UK in forum Ext 1.x: Help & Discussion
    Replies: 26
    Last Post: 13 Jan 2007, 9:11 AM
  4. Basic Dialog and form submit
    By JC in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 21 Nov 2006, 12:44 AM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi