Apr 06, 2010, 8:18 PM
[CLOSED] [1.0] Grouping view with Row Editor?
I will include the code first, and explain what the problem is below it. I don't know if this is a bug or not, but this is what I am doing:
.aspx
<ext:Store ID="strItems" runat="server" GroupField="ItemName">
<Reader>
<ext:JsonReader>
<Fields>
<ext:RecordField Name="SortOrder" Type="Int" />
<ext:RecordField Name="ItemName" Type="String" />
<ext:RecordField Name="ItemGroup" Type="String" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<ext:Panel ID="pContent" runat="server" Border="false" Layout="Fit">
<Items>
<ext:GridPanel ID="gpItems" runat="server" StoreID="strItems" Title="Items" Icon="Brick" AutoExpandColumn="ItemName" StyleSpec="padding:10px;">
<ColumnModel>
<Columns>
<ext:Column ColumnID="SortOrder" DataIndex="SortOrder" Header="Sort Order" Width="40">
<Editor>
<ext:TextField runat="server" />
</Editor>
</ext:Column>
<ext:Column ColumnID="ItemGroup" DataIndex="ItemGroup" Header="Group" />
<ext:Column ColumnID="ItemName" DataIndex="ItemName" Header="Item Name" />
<ext:CommandColumn Hidden="true">
<GroupCommands>
<ext:GridCommand Icon="GroupEdit" CommandName="GroupEdit">
<ToolTip Text="Edit" />
</ext:GridCommand>
<ext:GridCommand Icon="GroupAdd" CommandName="GroupAdd">
<ToolTip Text="Add" />
</ext:GridCommand>
</GroupCommands>
</ext:CommandColumn>
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel />
</SelectionModel>
<View>
<ext:GroupingView runat="server" HideGroupedColumn="true" GroupTextTpl="{text}" MarkDirty="false" />
</View>
<Plugins>
<ext:RowEditor runat="server" SaveText="Update" />
</Plugins>
</ext:GridPanel>
</Items>
</ext:Panel>
Basically, what this is doing is when I click on an item to edit it. The RowEditor appears. It allows me to edit, but if I click on another row before I click Update/Cancel. It shows an error of "Errors - You need to commit or cancel your changes." Which is fine. However, this "error indicator" is showing up WAY at the very top of the page and not anywhere near the grid or RowEditor.Thanks.