1. #1
    Ext JS Premium Member
    Join Date
    Nov 2010
    Posts
    51
    Vote Rating
    1
    jzhang1 is on a distinguished road

      0  

    Default How to Disable the rowEditing

    How to Disable the rowEditing


    I have a rowEditing grid. I have to disable the rowEditing based on the groble variable.
    How do I do it?

    Something like
    If (value = 'abc) {
    disable rowEditing;
    }



    Is there any sample code?

    Thanks a lot!

  2. #2
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,264
    Vote Rating
    80
    ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough

      0  

    Default


    Code:
            var re = Ext.create("Ext.grid.plugin.RowEditing", {
                clicksToMoveEditor : 2,
                autoCancel : false,
                errorSummary : false,
                listeners : {
                    beforeedit : function(ev) {
                        ev.cancel = someGlobalVar;
                     }
                }
            });
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

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