Aug 19, 2015, 3:05 AM
grid control Cell Editing startEdit is not working in the version EXT.Net 2.5.3
I am migrating Ext.Net 1.6 version to Ext.net 2.5.3 in my Project.
Requirement:
I have form with Grid controls,when I click on Add button then it will create New row focus
with some editable columns.
My First row column is hidden.
Issues:
The Ext.net 1.6 version used the StarEditing keyword, Now it is changing to StarEdit,
If I implement in my Ext.Net 2.5.3 version the cell edit StarEdit throws error for Null Reference
Please help me on this issue
My Code is here
Requirement:
I have form with Grid controls,when I click on Add button then it will create New row focus
with some editable columns.
My First row column is hidden.
Issues:
The Ext.net 1.6 version used the StarEditing keyword, Now it is changing to StarEdit,
If I implement in my Ext.Net 2.5.3 version the cell edit StarEdit throws error for Null Reference
Please help me on this issue
My Code is here
<ext:Panel ID="pnlEmployer" runat="server" LabelWidth="1" Layout="FormLayout">
<Items>
<ext:GridPanel ID="grdpnlEmployerProfile_Staff" runat="server" Height="200px"
Border="True" Cls="x-grid-custom" Collapsible="True"
ColumnLines="True" StoreID="storeEmployerProfile_Staff"
StripeRows="True" Title="List of Org Staff" TitleCollapse="True" Width="900">
<Plugins>
<ext:CellEditing ID="CellEditing1" runat="server" ClicksToEdit="1" />
</Plugins>
<TopBar>
<ext:Toolbar ID="tlbrEmployerProfile_Staff" runat="server">
<Items>
<ext:Button ID="btnNewEmployerProfile_Staff" runat="server" Icon="Add" Text="New">
<Listeners>
<Click Handler="#{grdpnlEmployerProfile_Staff}.insert(1, {
EmployerProfile_Id : #{hidEmployerProfile_Id}.getValue(),
Salutation : 'Mr',
RoleType_Id : 3
});
#{grdpnlEmployerProfile_Staff}.getView().refresh(false);
#{grdpnlEmployerProfile_Staff}.getSelectionModel().select(0);
#{grdpnlEmployerProfile_Staff}.getView().focusRow(0);
#{grdpnlEmployerProfile_Staff}.editingPlugin.startEdit(0, 2);" />
</Listeners>
</ext:Button>
</Items>
</ext:Toolbar>
</TopBar>
<ColumnModel ID="ColumnModel5" runat="server">
<Columns>
<ext:RowNumbererColumn ID="RowNumbererColumn1" runat="server"/>
<ext:NumberColumn ID="NumberColumn1" runat="server" Align="Right" DataIndex="EmployerProfile_Id" Format="0,000" Header="EmployerProfile Id"
Hidden="True" Hideable="False" Width="100" />
<ext:Column ID="Column1" runat="server" DataIndex="Salutation" Text="Salutation" Width="80">
<Editor>
<ext:ComboBox ID="cbxSalutation" runat="server" AllowBlank="False"
DisplayField="Salutation" EmptyText="Select..."
MaxLength="20" MinChars="1" MinWidth="80" Mode="Local" StoreID="storeMaster_Salutation"
TriggerAction="All" TypeAhead="True" ValueField="Salutation" Width="200">
<Listeners>
</Listeners>
</ext:ComboBox>
</Editor>
</ext:Column>
<ext:Column ID="Column2" runat="server" DataIndex="RoleType_Id" Text="Role" Width="80">
<Editor>
<ext:ComboBox ID="cbxRoleType_Id" runat="server" AllowBlank="False"
DisplayField="RoleType" EmptyText="Select..." MaxLength="100" MinChars="1"
MinWidth="80" Mode="Local" StoreID="storeMaster_RoleType" TriggerAction="All"
TypeAhead="True" ValueField="Id" Width="200">
<Listeners>
</Listeners>
</ext:ComboBox>
</Editor>
<Renderer Handler="if (Ext.isEmpty(record.data.RoleType_Id)) {
return null;
} else {
return #{storeMaster_RoleType}.getById(record.data.RoleType_Id).data.RoleType;
};" />
</ext:Column>
</Columns>
</ColumnModel>
</ext:GridPanel>
</Items></ext:Panel>
Last edited by yenkarthi; Aug 19, 2015 at 3:22 AM.