-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create draft PR for #404 * Changed TakeLast to Order().Take * Changed Excel exporter * Improved sorting in data exporters * Added sorting option. Added using nested properties in custom columns. * Remove useless link * Update sorting in InMemory, Json and Raven repositories * Test repair * Added documentation. Custom columns are automatically added into sort elements if sort is enabled --------- Co-authored-by: IX-BOT <137874481+IX-BOT@users.noreply.github.com> Co-authored-by: Peter Kurhajec <61538034+PTKu@users.noreply.github.com>
- Loading branch information
1 parent
3c23453
commit 3991413
Showing
26 changed files
with
245 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Reflection; | ||
|
||
namespace AXOpen.Base | ||
{ | ||
public static class PropertyHelper | ||
{ | ||
public static object? GetPropertyValue(object obj, string propertyPath) | ||
{ | ||
if (obj == null) | ||
throw new ArgumentNullException(nameof(obj)); | ||
|
||
if (string.IsNullOrEmpty(propertyPath)) | ||
throw new ArgumentNullException(nameof(propertyPath)); | ||
|
||
string[] properties = propertyPath.Split('.'); | ||
foreach (string property in properties) | ||
{ | ||
if (obj == null) return null; | ||
|
||
PropertyInfo propertyInfo = obj.GetType().GetProperty(property); | ||
if (propertyInfo == null) | ||
throw new ArgumentException($"Property '{property}' not found on '{obj.GetType().Name}'"); | ||
|
||
obj = propertyInfo.GetValue(obj, null); | ||
} | ||
|
||
return obj; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/data/app/ix-blazor/librarytemplate.blazor/wwwroot/font/bootstrap-icons.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+172 KB
src/data/app/ix-blazor/librarytemplate.blazor/wwwroot/font/fonts/bootstrap-icons.woff
Binary file not shown.
Binary file added
BIN
+128 KB
src/data/app/ix-blazor/librarytemplate.blazor/wwwroot/font/fonts/bootstrap-icons.woff2
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Sorting | ||
|
||
To enable sorting options, set the attribute `EnableSorting` to true and specify the list `SortElements` with the names of the attributes as strings. | ||
|
||
If you are using custom columns and `EnableSorting` is set to true, these columns will be automatically added to `SortElements`. | ||
|
||
The example of usage: | ||
|
||
[!code-smalltalk[](../app/ix-blazor/librarytemplate.blazor/Pages/Rendering.razor?name=Sorting)] | ||
|
||
![Sorting](assets/Sort.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
src/data/src/AXOpen.Data.Blazor/AxoDataExchange/DataExchangeView.razor.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.rotate { | ||
display: inline-block; | ||
transform: rotate(180deg); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.