[CLOSED] Get record being edited in column editor from EditorOptions:BeforeStartEdit

  1. #1

    [CLOSED] Get record being edited in column editor from EditorOptions:BeforeStartEdit

    I have a column defined as such:
    	<ext:Column runat="server" DataIndex="UnitOfMeasurement" Header="Unit" ColumnID="UnitOfMeasurement" Width="75" Align="Left" Hideable="false" Border="false">
    							<Editor>
    								<ext:TextField runat="server" SelectOnFocus="true" />
    							</Editor>
    							<EditorOptions >
    								<Listeners> 
    									<BeforeStartEdit Fn="PerformanceMetrics.beforeStartEditCheck" />
    								</Listeners> 
    							</EditorOptions>
    						</ext:Column>
    In my JS method:

    
    		beforeStartEditCheck: function(item, boundEl, value)
    		{
    			var r = false;
    
    
    			return r;
    		},

    How can I get the record being edited? I scoured the item object but can seem to find how to obtain either the row index or the record?

    Thanks,
    Last edited by Baidaly; Dec 20, 2013 at 7:57 PM. Reason: [CLOSED]
  2. #2
    Hello!

    Try the following:

    item.editingPlugin.getActiveRecord();
  3. #3
    Quote Originally Posted by Baidaly View Post
    Hello!

    Try the following:

    item.editingPlugin.getActiveRecord();
    That works...

    But what I ended up using was the CellEditor BeforeEdit, which had what I needed and I didn't have to put handlers in all of the editors..

    Thanks!

Similar Threads

  1. Replies: 3
    Last Post: Aug 22, 2013, 5:12 PM
  2. [CLOSED] Over editor combobox component record gets undefined
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: May 06, 2013, 4:31 PM
  3. Replies: 13
    Last Post: Nov 19, 2012, 4:36 AM
  4. [CLOSED] EditorOptions
    By FloatingPoint in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: May 17, 2012, 7:00 PM
  5. [CLOSED] Edit current record in a Column-Editor.
    By macap in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 04, 2009, 3:57 PM

Posting Permissions