Feb 04, 2015, 10:42 AM
[CLOSED] [#680] Migration of TreeGrid from Ext 2.5.3 to 3.0.0
Hi,
i have an TreeGrid with CellEditing Plugin. With Ext Version 2.5.3 it work fine, but not with Version 3.0.0.
After migration i have two problems:
a) contextmenu is not visible
If i set the "ClicksToEdit=2" then the contextmenu will be visible.
Is there a possibilty to change the value back to 1 with the old behavior?
b) editingPlugin is undefined
Also after migration i cannot use the editingPlugin for access to the record
Is there a new synatx for data access?
best regards
I.
i have an TreeGrid with CellEditing Plugin. With Ext Version 2.5.3 it work fine, but not with Version 3.0.0.
After migration i have two problems:
a) contextmenu is not visible
<Plugins>
<ext:CellEditing runat="server" ClicksToEdit="1">
<Listeners>
<BeforeEdit Handler="return beforeCellEditHandler(e);"></BeforeEdit>
</Listeners>
</ext:CellEditing>
</Plugins>
<View>
<ext:TreeView runat="server" StripeRows="true" TrackOver="true" >
<Listeners>
<CellContextMenu Fn="showContextMenu" StopEvent="true" />
</Listeners>
<GetRowClass Fn="getRowClass" />
</ext:TreeView>
</View>
The contextmenu will not be visible, editor starts on click event. It doesnt matter if right or left click. If i set the "ClicksToEdit=2" then the contextmenu will be visible.
Is there a possibilty to change the value back to 1 with the old behavior?
b) editingPlugin is undefined
Also after migration i cannot use the editingPlugin for access to the record
<ext:Column runat="server" ID="cStatus" Text="Status" DataIndex="Status" Width="100" >
<Editor>
<ext:ComboBox runat="server" ID="edtStatus" DisplayField="coStatus" TriggerAction="All" AllowBlank="false" ValueField="coStatus" Hidden="true">
<Store>
<ext:Store runat="server" ID="cboStatusStore">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="ID" />
<ext:ModelField Name="coStatus" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<DirectEvents>
<BeforeQuery OnEvent="cboStatus_BeforeQuery">
<ExtraParams>
<ext:Parameter Name="OTHERFIELD" Value="#{TreeGrid1}.editingPlugin.context.record.data.OTHERFIELD" Mode="Raw" />
</ExtraParams>
</BeforeQuery>
</DirectEvents>
</ext:ComboBox>
</Editor>
</ext:Column>
I get the Message: TypeError: App.TreeGrid1.editingPlugin is undefinedIs there a new synatx for data access?
best regards
I.
Last edited by Daniil; Feb 05, 2015 at 10:37 AM.
Reason: [CLOSED] [#680]