Dec 20, 2013, 5:02 PM
[CLOSED] Get record being edited in column editor from EditorOptions:BeforeStartEdit
I have a column defined as such:
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,
<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]