[CLOSED] Get Cell MetaData on BeforeEdit GridPanel event

  1. #1

    [CLOSED] Get Cell MetaData on BeforeEdit GridPanel event

    How can I get the meta.attr of a cell on the BeforeEdit GridPanel event?
    Last edited by Daniil; Aug 17, 2011 at 7:42 PM. Reason: [CLOSED]
  2. #2
    meta.attr is temporary object, it doesn't accessible after cell rendering
  3. #3
    Ok. I think I found a way to get what I wanted. I was after the style setting that I made during the renderering..
    I wanted to make sure "greyed out" cells couldn't be edited..here is how I got it to work..

            var checkForEnable = function (grid, rowIndex, columnIndex, e) {
                var t = e.getTarget();
                // value will be "background-color: rgb(219, 219, 219); color: black; " if background was set to grey by init rendering.
                //we simply cancel the edit event and let user know they can't edit transactions
                //for this month since there are no returns.
                if (t.style.cssText.indexOf('219') > 0) {
                    Ext.Msg.alert('No Transactions permitted', 'You can\'t enter transactions for a fund when there are no returns.');
                    return false;
                }
                else
                    return true;
    
    
            };

Similar Threads

  1. Replies: 1
    Last Post: Jul 10, 2012, 11:16 AM
  2. [CLOSED] Get metadata from a record
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 22, 2011, 3:42 AM
  3. [CLOSED] fn vs Handler, eventargs in beforeedit event
    By mirwais in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 13, 2011, 10:44 AM
  4. Replies: 1
    Last Post: Feb 10, 2011, 8:27 AM
  5. [CLOSED] JsonStore metadata change
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: May 21, 2009, 9:22 AM

Posting Permissions