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,305
    Vote Rating
    106
    ssamayoa is just really nice ssamayoa is just really nice ssamayoa is just really nice ssamayoa is just really nice

      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