[CLOSED] [1.0] Grouping view with Row Editor?

  1. #1

    [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.
  2. #2

    RE: [1.0] Grouping view with Row Editor?

    Hi,

    Your posted code doesn't reproduced described problem.
    Please post a test application which demonstrates the issue


    EDIT: Marking as solved until further information is provided by original poster.


  3. #3
    Rookie mistake. Works fine, thank you.
  4. #4
    Quote Originally Posted by pj_martins View Post
    Rookie mistake. Works fine, thank you.
    Seems you posted in a wrong thread.
  5. #5
    No, it was my mistake, the sample I gave you worked fine on my end after all when I wired in the OnEvent for AfterEdit. The problem in the actual project was I was setting the wrong column.
  6. #6
    Ok, just you updated the closed 1.5 year ago thread, I was sure it's a mistake:)

Similar Threads

  1. [CLOSED] Remote grouping or grouping summary for GridPanel
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 08, 2009, 10:23 PM
  2. grouping view sort or order
    By [WP]joju in forum 1.x Help
    Replies: 3
    Last Post: Jul 22, 2009, 9:11 AM
  3. How to add grouping view from code behind
    By anand in forum 1.x Help
    Replies: 7
    Last Post: May 26, 2009, 11:34 AM
  4. [CLOSED] Grouping View Custom Template
    By peterdiplaros in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Dec 08, 2008, 1:22 PM

Posting Permissions