Mar 01, 2016, 2:55 PM
Editor Cell plugin record is undefined
Hi, i have a grid panel with CellEditor plugin.
My problem is that with this code
My goal is to activate editor based on row value (or if row is phantom)
My problem is that with this code
<ext:Column runat="server" DataIndex="IDCausale" Text="Causale" ID="colc" Width="200">
<SummaryRenderer Handler="return '<div style=\'text-align:right\'><span>Totale</span></div>'" />
<Renderer Fn="causaliRenderer" />
<Editor>
<ext:ComboBox ID="cmb_idcausale" runat="server" ValueField="IDCausaleMovimento" DisplayField="Descrizione" AllowBlank="false" ForceSelection="true" TypeAhead="false" Editable="false" QueryMode="Local" Disabled="true">
<Store>
<ext:Store runat="server">
<Model>
<ext:Model runat="server" IDProperty="IDCausaleMovimento">
<Fields>
<ext:ModelField Name="IDCausaleMovimento" Type="Int" />
<ext:ModelField Name="Descrizione" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
</ext:ComboBox>
</Editor>
<EditorOptions>
<Listeners>
<BeforeStartEdit Handler="return e.record.phantom" />
</Listeners>
</EditorOptions>
</ext:Column>
in BeforeStartEdit
record is always undefined. My goal is to activate editor based on row value (or if row is phantom)