Skip to content

Commit 2d72e6f

Browse files
auto sync for version 2023.1
1 parent 0dd8fea commit 2d72e6f

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

CustomFunctionExample/Views/Home/Designer.cshtml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
@{
1+
<script type="text/javascript">
2+
function OnBeforeRender(event) {
3+
delete DevExpress.Reporting.Designer.Widgets.reportFunctionDisplay[1].items["LocalDateTimeThisYear"];
4+
}
5+
</script>
6+
7+
@{
28
var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
39
.Height("100%")
10+
.ClientSideEvents(configure => configure.BeforeRender("OnBeforeRender"))
411
.Bind(Model.ReportDesignerModel);
512
@designerRender.RenderHtml()
613
}

CustomFunctionExample/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"private": true,
66
"dependencies": {
77
"bootstrap": "^4.3.1",
8-
"devextreme-dist": "^23.1.2",
8+
"devextreme-dist": "23.1-next",
99
"@devexpress/analytics-core": "23.1-stable",
1010
"devexpress-reporting": "23.1-stable"
1111
}

CustomFunctionInExpressionAspNetCore.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.31321.278
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomFunctionInExpressionAspNetCore", "CustomFunctionInExpressionAspNetCore\CustomFunctionInExpressionAspNetCore.csproj", "{50E47FB8-24E5-44B7-AF28-01659B9FD08E}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomFunctionExample", "CustomFunctionExample\CustomFunctionExample.csproj", "{50E47FB8-24E5-44B7-AF28-01659B9FD08E}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
<!-- default badges list -->
2-
![](https://img.shields.io/endpoint?url=https://codecentral.devexpress.com/api/v1/VersionRange/383863813/2023.1)
3-
[![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/T1013155)
4-
[![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183)
5-
<!-- default badges end -->
61
# Reporting for ASP.NET Core - How to Implement a Custom Function in the Expression Editor
72

83
This example demonstrates how to implement custom functions for the [Expression Editor](https://docs.devexpress.com/XtraReports/114059/web-reporting/gui/interface-elements/expression-editor) available in the [Web End-User Report Designer](https://docs.devexpress.com/XtraReports/119176/web-reporting/web-end-user-report-designer).
@@ -35,4 +30,4 @@ The `CountDistinctCustomAggregate` class implements the [ICustomAggregateBrowsab
3530

3631
## More Examples
3732

38-
- [Expression Editor - How to Implement a Custom Function (WinForms)](https://github.com/DevExpress-Examples/Reporting_expression-editor-how-to-implement-a-custom-new-line-and-format-functions-t211298)
33+
- [Expression Editor - How to Implement a Custom Function (WinForms)](https://github.com/DevExpress-Examples/Reporting_expression-editor-how-to-implement-a-custom-new-line-and-format-functions-t211298)

0 commit comments

Comments
 (0)