Jan 12, 2012, 11:27 AM
[CLOSED] Grid Panel Grouping Issue
Dear Members,
I am facing an issue regarding grouping in Grid Panel. Grid Panel Shows with no error but when I click on "show in Groups"(with a specified Field).
It shows in Groups with repeated Same Field Value Which should be unique.
For example I have field Priority which has three values Low,Medium,High
Result should be in three groups but It shows me 5 and more Groups.
This is my Grid.
I am facing an issue regarding grouping in Grid Panel. Grid Panel Shows with no error but when I click on "show in Groups"(with a specified Field).
It shows in Groups with repeated Same Field Value Which should be unique.
For example I have field Priority which has three values Low,Medium,High
Result should be in three groups but It shows me 5 and more Groups.
This is my Grid.
<ext:GridPanel ID="GridPanel_Requests" runat="server" IDMode="Explicit">
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ColumnID="col_RequestID" DataIndex="Id" Header="ID">
</ext:Column>
<ext:Column ColumnID="col_Subject" DataIndex="Subject" Header="Subject" Width="350px">
</ext:Column>
<ext:Column ColumnID="col_Responsible" Groupable="true" DataIndex="ResponsibleName"
Header="Responsible" Width="150px">
</ext:Column>
<ext:Column ColumnID="col_User" DataIndex="UserName" Header="User" Width="150px">
</ext:Column>
<ext:Column ColumnID="col_Priority" DataIndex="PriorityDesc" Header="Priority" Width="100px">
</ext:Column>
<ext:Column ColumnID="col_Category" DataIndex="CategoryName" Header="Category" Width="250px">
</ext:Column>
<ext:CommandColumn Width="25" Hideable="false">
<Commands>
<ext:GridCommand CommandName="edit" Icon="ApplicationFormEdit">
<ToolTip Text="Edit" />
</ext:GridCommand>
</Commands>
<PrepareToolbar Handler="toolbar.setVisible(!record.newRecord);" />
</ext:CommandColumn>
</Columns>
</ColumnModel>
<View>
<ext:GroupingView ID="GroupingView1" HideGroupedColumn="true" runat="server" ForceFit="true"
StartCollapsed="true" GroupTextTpl='<span id="ColorCode-{[values.rs[0].data.ColorCode]}"></span>{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})'
EnableRowBody="true" EnableGrouping="true" >
<Listeners>
<Refresh Fn="setGroupStyle" />
</Listeners>
</ext:GroupingView>
</View>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true">
</ext:RowSelectionModel>
</SelectionModel>
<BottomBar>
<ext:PagingToolbar ID="PagingToolbar1" runat="server" PageSize="24">
</ext:PagingToolbar>
</BottomBar>
<Listeners>
<Command Handler="Request.setIndex(this,rowIndex);#{btnRequestEdit}.fireEvent('click',#{btnEdit})" />
</Listeners>
<Plugins>
<ext:GridFilters ID="gridfilters" runat="server" Local="false">
<Filters>
<ext:NumericFilter DataIndex="Id" />
<ext:StringFilter DataIndex="Subject" />
<ext:StringFilter DataIndex="ResponsibleName">
</ext:StringFilter>
<ext:StringFilter DataIndex="UserName">
</ext:StringFilter>
<ext:ListFilter DataIndex="PriorityDesc" Options="ASAP,High,Normal,Low,Very Low">
</ext:ListFilter>
<ext:StringFilter DataIndex="CategoryName">
</ext:StringFilter>
</Filters>
</ext:GridFilters>
</Plugins>
</ext:GridPanel>
This is my Store<ext:Store ID="Store_Request" runat="server" AutoDataBind="true" RemoteSort="true">
<Proxy>
<ext:HttpProxy Method="GET" />
</Proxy>
<Reader>
<ext:JsonReader IDProperty="Id" Root="rows" TotalProperty="total">
<Fields>
<ext:RecordField Name="Id" Mapping="Id" SortDir="ASC" />
<ext:RecordField Name="Subject" Mapping="Subject" />
<ext:RecordField Name="CategoryName" Mapping="Category.Name" />
<ext:RecordField Name="CategoryId" Mapping="Category.Id" />
<ext:RecordField Name="Category2Id" Mapping="Category2.Id" />
<ext:RecordField Name="Category3Id" Mapping="Category3.Id" />
<ext:RecordField Name="PriorityId" Mapping="priority.Id" />
<ext:RecordField Name="PriorityDesc" Mapping="priority.description" />
<ext:RecordField Name="Estimated" Mapping="Estimated" />
<ext:RecordField Name="DeadLine" Mapping="DeadLine" Type="Date" DateFormat="M$" />
<ext:RecordField Name="ExpectedDate" Mapping="ExpectedDate" Type="Date" DateFormat="M$" />
<ext:RecordField Name="Reminder" Mapping="Reminder" Type="Date" DateFormat="M$" />
<ext:RecordField Name="Completed" Mapping="Completed" />
<ext:RecordField Name="ILocation" Mapping="ILocation" />
<ext:RecordField Name="ResponsibleName" Mapping="Responsible.User_Name" />
<ext:RecordField Name="StatusId" Type="Int" />
<ext:RecordField Name="ResponsibleId" Mapping="Responsible.Id" />
<ext:RecordField Name="UserName" Mapping="User.User_Name" />
<ext:RecordField Name="UserId" Mapping="User.Id" />
<ext:RecordField Name="projectName" Mapping="project.Name" />
<ext:RecordField Name="projectId" Mapping="project.Id" />
<ext:RecordField Name="problem" Mapping="Problem" />
<ext:RecordField Name="Solution" Mapping="Solution" />
<ext:RecordField Name="Update" Mapping="Update" />
<ext:RecordField Name="Delete" Mapping="Delete" />
<ext:RecordField Name="Type" Mapping="Type" />
</Fields>
</ext:JsonReader>
</Reader>
<BaseParams>
<ext:Parameter Name="limit" Value="24" Mode="Raw" />
<ext:Parameter Name="start" Value="0" Mode="Raw" />
<ext:Parameter Name="dir" Value="ASC" />
<ext:Parameter Name="sort" Value="Id" />
<ext:Parameter Name="gridfilters" Value="" />
</BaseParams>
<SortInfo Field="Id" Direction="ASC" />
</ext:Store>
a print shot is attached
Last edited by Daniil; Jan 16, 2012 at 8:15 AM.
Reason: [CLOSED]