[CLOSED] [1.0] Store sort and grouping

  1. #1

    [CLOSED] [1.0] Store sort and grouping

    I seem to have an issue that worked fine a week or two ago. I have a sort on a Store, and when grouping the data it changes the way the sort is by the group name. Was this changed? How can I get it to group by the original sort coming from the Store?

    <ext:GridPanel ID="GridPanel1" Hidden="true" Header="false" runat="server" Frame="true"
        StoreID="Store1" StripeRows="true" Title="Field Safety Questions" AutoExpandColumn="Question"
        AnimCollapse="false" Icon="ApplicationViewColumns" TrackMouseOver="false">
        <ColumnModel ID="ColumnModel5" runat="server">
            <Columns>
                <ext:GroupingSummaryColumn ColumnID="Question" Header="Question" Sortable="true"
                    DataIndex="Question" Hideable="false" SummaryType="Count">
                    <SummaryRenderer Handler="return ((value === 0 || value > 1) ? '(' + value +' Questions)' : '(1 Question)');" />
                </ext:GroupingSummaryColumn>
                <ext:Column ColumnID="Name" Header="Group Name" DataIndex="Name" Width="20" />
                <ext:CheckColumn DataIndex="Yes" Groupable="true" Header="Yes" Width="15">
                    <Editor>
                        <ext:Checkbox ID="GridEdit_Yes" runat="server" DataIndex="Yes" Width="15">
                        </ext:Checkbox>
                    </Editor>
                </ext:CheckColumn>
                <ext:CheckColumn DataIndex="No" Groupable="true" Header="No" Width="15">
                    <Editor>
                        <ext:Checkbox ID="GridEdit_No" runat="server" DataIndex="No" Width="15">
                        </ext:Checkbox>
                    </Editor>
                </ext:CheckColumn>
                <ext:CheckColumn DataIndex="NA" Groupable="true" Header="NA" Width="15">
                    <Editor>
                        <ext:Checkbox ID="GridEdit_NA" runat="server" DataIndex="NA" Width="15">
                        </ext:Checkbox>
                    </Editor>
                </ext:CheckColumn>
            </Columns>
        </ColumnModel>
        <Plugins>
            <ext:EditableGrid ID="EditableGrid1" runat="server" />
        </Plugins>
        <View>
            <ext:GroupingView ID="GroupingView1" runat="server" ForceFit="true" ShowGroupName="false"
                EnableNoGroups="true" HideGroupedColumn="true" />
        </View>
        <Plugins>
            <ext:GroupingSummary ID="GroupingSummary1" runat="server" />
        </Plugins>
    </ext:GridPanel>
    <ext:Store ID="Store1" runat="server" GroupField="Name">
        <sortinfo direction="ASC" field="Question_ID" />
        <reader>
            <ext:JsonReader IDProperty="Question_ID">
                <Fields>
                    <ext:RecordField Name="Group_ID" />
                    <ext:RecordField Name="Name" />
                    <ext:RecordField Name="Group_Sort" />
                    <ext:RecordField Name="Question_ID" />
                    <ext:RecordField Name="Question" />
                    <ext:RecordField Name="Question_Sort" />
                    <ext:RecordField Name="Yes" />
                    <ext:RecordField Name="No" />
                    <ext:RecordField Name="NA" />
                    <ext:RecordField Name="Text1" />
                    <ext:RecordField Name="Text2" />
                </Fields>
            </ext:JsonReader>
        </reader>
    </ext:Store>
  2. #2

    RE: [CLOSED] [1.0] Store sort and grouping

    Hi,

    Please provide full sample. For me original sorting is used inside each group
  3. #3

    RE: [CLOSED] [1.0] Store sort and grouping

    Assuming original poster has [CLOSED] this problem. Please feel free to post more information as it becomes available and we'll re-open the thread.

    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Store: Sort by Multiple Column
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Dec 27, 2013, 4:05 AM
  2. [CLOSED] [1.0] Grouping sort order
    By danielg in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 31, 2011, 3:54 PM
  3. grouping view sort or order
    By [WP]joju in forum 1.x Help
    Replies: 3
    Last Post: Jul 22, 2009, 9:11 AM
  4. [CLOSED] Sort, Grouping issues in GridPanel
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 07, 2009, 6:22 PM
  5. Store sort not working?
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: May 04, 2009, 11:30 PM

Posting Permissions