1. #1
    Ext JS Premium Member
    Join Date
    Nov 2010
    Posts
    51
    Vote Rating
    0
    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,181
    Vote Rating
    77
    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 MVC
    Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
    Application Server: Glassfish 3.1.x
    Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5

    If you like my answer please vote!

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar