First I would like to sort the column Connector ID (as it's done now), then sort on column Cavity.
Connector ID is of type Enumeration and Cavity is of type String.
The result should be like this:
Any ideas?
/Stefan
最佳答案
B
Bashar Nassar
说
超过6年 以前
Hi Stefan,
Currently we don't support double sort in grid, but I think it is a useful feature request. However, there is a workaround way to handle that, using groupBy and sort at the same time. To do so, groupBy Connector ID and sort by Cavit, see the example below.
<Grid> <Options> <HeaderAutoHeight/>
<!--Enables grouping column number 2, which is Connector ID --> <Grouping groupBy="2"/> </Options> <Columns> <!-- Columns removed just for compressing number of lines in this example -->
Currently we don't support double sort in grid, but I think it is a useful feature request. However, there is a workaround way to handle that, using groupBy and sort at the same time. To do so, groupBy Connector ID and sort by Cavit, see the example below.
<Grid> <Options> <HeaderAutoHeight/>
<!--Enables grouping column number 2, which is Connector ID --> <Grouping groupBy="2"/> </Options> <Columns> <!-- Columns removed just for compressing number of lines in this example -->
Stefan Edvardsson
Hi.
I'm looking for a way to double sort, in this specific topic it's a grid.
Current definintion is very simple:
<Grid>
<Options>
<HeaderAutoHeight/>
<Grouping/>
</Options>
<Columns>
<!-- Columns removed just for compressing number of lines in this example -->
</Columns>
<ForEachPart type="ITWB" sort="Attribute:5CON">
<Row/>
</ForEachPart>
</Grid>
This definition gives following result:
First I would like to sort the column Connector ID (as it's done now), then sort on column Cavity.
Connector ID is of type Enumeration and Cavity is of type String.
The result should be like this:
Any ideas?
/Stefan
Currently we don't support double sort in grid, but I think it is a useful feature request.
However, there is a workaround way to handle that, using groupBy and sort at the same time.
To do so, groupBy Connector ID and sort by Cavit, see the example below.
<Grid>
<Options>
<HeaderAutoHeight/>
<!--Enables grouping column number 2, which is Connector ID -->
<Grouping groupBy="2"/>
</Options>
<Columns>
<!-- Columns removed just for compressing number of lines in this example -->
</Columns>
<ForEachPart type="ITWB" sort="Attribute:5CON">
<Row/>
</ForEachPart>
</Grid>
/Bashar
- 最早在前
- 热门
- 最新在前
Sorted by 最早在前Bashar Nassar
Currently we don't support double sort in grid, but I think it is a useful feature request.
However, there is a workaround way to handle that, using groupBy and sort at the same time.
To do so, groupBy Connector ID and sort by Cavit, see the example below.
<Grid>
<Options>
<HeaderAutoHeight/>
<!--Enables grouping column number 2, which is Connector ID -->
<Grouping groupBy="2"/>
</Options>
<Columns>
<!-- Columns removed just for compressing number of lines in this example -->
</Columns>
<ForEachPart type="ITWB" sort="Attribute:5CON">
<Row/>
</ForEachPart>
</Grid>
/Bashar
Stefan Edvardsson
This works as a workaround.
Result:
And expanded:
And if you click on the pin
you and select the items you want to work with, or even make custom filtering
Thanks Bashar.
/Stefan
-
Comparing two versions of a structure
-
Context and path language
-
Overview of meta model
-
Importing old data
-
Cannot find multiple version items
-
Accumulated bar chart
-
Cannot remove part - is referenced
-
View of non accessable data
-
Path: How to check if an attribute is empty?
-
List and path language
查看所有33话题