PDA

View Full Version : [CLOSED] Problem Row Editor with columns header group



Digital.Dynamics
Jun 11, 2012, 2:42 PM
Hi,

We are facing a serious problem when using Grouped Header columns with Row Editor.
The data are displayed correctly but when editing the row, the data and the component (numberfield) are not displayed.
This issue is occurred when using Group header column



<ext:Viewport ID="ViewPortBanq" runat="server" Layout="BorderLayout">
<Items>
<ext:GridPanel ID="GridPanelJobs" Region="Center" runat="server" Title="Jobs"
ForceFit="true" AutoScroll="true" Frame="true" Split="true" ColumnLines="true">
<Store>
<ext:Store ID="StoreJobs" runat="server" DataSourceID="LinqDataSource1" AutoDataBind="true"
AutoLoad="true">
<Model>
<ext:Model runat="server" IDProperty="Job_ID">
<Fields>
<ext:ModelField Name="Job_ID" />
<ext:ModelField Name="Job_Name" />
<ext:ModelField Name="Job_Name_En" />
<ext:ModelField Name="Ordering" />
<ext:ModelField Name="Department_ID" />
<ext:ModelField Name="Time_IN_H" />
<ext:ModelField Name="Time_IN_M" />
<ext:ModelField Name="Time_Out_H" />
<ext:ModelField Name="Time_Out_M" />
<ext:ModelField Name="Late_In_H" />
<ext:ModelField Name="Late_In_M" />
<ext:ModelField Name="Late_In_H2" />
<ext:ModelField Name="Late_In_M2" />
<ext:ModelField Name="IsAttReq" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<Plugins>
<ext:RowEditing ID="RowEditor1" runat="server" ClicksToEdit="2" SaveBtnText="Save"
ErrorSummary="false" CancelBtnText="Cancel">
<Listeners>
<BeforeEdit Fn="CheckEditing" />
<Edit Handler="#{GridPanelJobs}.save();" />
</Listeners>
</ext:RowEditing>
</Plugins>
<TopBar>
<ext:Toolbar ID="Toolbar1" runat="server">
<Items>
<ext:Button ID="BtnInsertRecord" runat="server" Text="Add Job" Icon="Add" Disabled="true"
Visible="false">
<Listeners>
<Click Handler="addRecord(#{GridPanelJobs});" />
</Listeners>
</ext:Button>
<ext:Button ID="BtnDeleteRecord" runat="server" Text="Remove Job" Icon="Delete" Disabled="true"
Visible="false">
<Listeners>
<Click Handler="assignGridStore(#{GridPanelJobs},#{StoreJobs}); removeRecord(#{GridPanelJobs}, command);" />
</Listeners>
</ext:Button>
<ext:Button ID="BtnRefresh" runat="server" Text="Refresh"
Icon="Reload">
<Listeners>
<Click Handler="#{GridPanelJobs}.getStore().reload();" />
</Listeners>
</ext:Button>
<ext:ToolbarFill />
<ext:Button ID="BtnSaveRecord" runat="server" Text="Save"
Icon="Disk" Hidden="true">
<Listeners>
<Click Handler="#{GridPanelJobs}.getStore().sync();" />
</Listeners>
</ext:Button>
</Items>
</ext:Toolbar>
</TopBar>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" />
</SelectionModel>
<ColumnModel runat="server">
<Columns>
<ext:RowNumbererColumn ID="RowNumbererColumn1" runat="server" />
<ext:CommandColumn runat="server" Width="25" ID="EditColumn">
<Commands>
<ext:GridCommand Icon="NoteEdit" CommandName="Edit" ToolTip-Text="Edit" Disabled="false">
</ext:GridCommand>
</Commands>
</ext:CommandColumn>
<ext:Column runat="server" ID="Job_ID" Text="Job_ID" Width="70" DataIndex="Job_ID"
Sortable="true" Hidden="true">
</ext:Column>
<ext:Column runat="server" ID="Job_Name" Text="Job_Name" Width="70" Align="Right"
DataIndex="Job_Name">
<Editor>
<ext:TextField ID="txfJob_Name" runat="server" AllowBlank="false" Cls="AlignRight">
</ext:TextField>
</Editor>
</ext:Column>
<ext:Column runat="server" ID="Job_Name_En" Text="Job_Name_En" Width="60" DataIndex="Job_Name_En"
Sortable="true">
<Editor>
<ext:TextField ID="txfJob_Name_En" runat="server" AllowBlank="false" >
</ext:TextField>
</Editor>
</ext:Column>
<ext:Column runat="server" ID="Time_In" Text="Time_In">
<Columns>
<ext:Column runat="server" ID="Time_IN_H" Text="Time_IN_H" Width="60" DataIndex="Time_IN_H"
Sortable="true" Align="Center">
<Editor>
<ext:NumberField ID="nbfTime_IN_H" runat="server" />
</Editor>
</ext:Column>
<ext:Column runat="server" ID="Time_IN_M" Text="Time_IN_M" Width="60" DataIndex="Time_IN_M"
Sortable="true" Align="Center">
<Editor>
<ext:NumberField ID="nbfTime_IN_M" runat="server" />
</Editor>
</ext:Column>
</Columns>
</ext:Column>
<ext:Column runat="server" ID="IsAttReq" Text="IsAttReq" Width="60" DataIndex="IsAttReq"
Sortable="true" Align="Center">
<Editor>
<ext:Checkbox ID="chxIsAttReq" runat="server">
</ext:Checkbox>
</Editor>
<Renderer Fn="Active_Column" />
</ext:Column>
<ext:CommandColumn ID="DeleteColumn" runat="server" Width="30" Align="Center" ButtonAlign="Center">
<Commands>
<ext:GridCommand Icon="Delete" CommandName="Delete" ToolTip-Text="Delete"
Disabled="false" />
</Commands>
<DirectEvents>
<Command OnEvent="ShowJobsDetail">
<ExtraParams>
<ext:Parameter Mode="Raw" Name="recordId" Value="record.getId()">
</ext:Parameter>
<ext:Parameter Mode="Raw" Name="commandName" Value="command">
</ext:Parameter>
</ExtraParams>
</Command>
</DirectEvents>
</ext:CommandColumn>
</Columns>
</ColumnModel>
<Listeners>
<CellClick Fn="ChangeCheckIconColumn" />
</Listeners>
<View>
<ext:GridView runat="server" />
</View>
<BottomBar>
<ext:PagingToolbar ID="PagingToolBar1" runat="server" StoreID="StoreJobs" PageSize="20"
DisplayInfo="true" DisplayMsg="Displaying Jobs {0} - {1} of {2}" />
</BottomBar>
</ext:GridPanel>
</Items>
</ext:Viewport>

Daniil
Jun 11, 2012, 8:51 PM
Hi,

Thanks for the report. We will investigate.

Vladimir
Jun 11, 2012, 9:42 PM
Fixed in SVN. Please update

Digital.Dynamics
Jun 12, 2012, 5:11 AM
Thanks, It's working fine now.