@@ -45,7 +45,92 @@ public virtual void OnDataProcessed(ref object data, RequestInfoModel requestInf
45
45
// No data processing logic by default;
46
46
}
47
47
48
- public virtual void OnSearchnDataProcessing ( ref object data , RequestInfoModel requestInfoModel )
48
+ /// <summary>
49
+ /// Called when [search data processing].
50
+ /// </summary>
51
+ /// <param name="data">The data.</param>
52
+ /// <param name="requestInfoModel">The request information model.</param>
53
+ public virtual void OnSearchDataProcessing ( ref object data , RequestInfoModel requestInfoModel )
54
+ {
55
+ // No data processing logic by default;
56
+ }
57
+
58
+ /// <summary>
59
+ /// Called when [custom filters data processing].
60
+ /// </summary>
61
+ /// <param name="data">The data.</param>
62
+ /// <param name="requestInfoModel">The request information model.</param>
63
+ public virtual void OnCustomFiltersDataProcessing ( ref object data , RequestInfoModel requestInfoModel )
64
+ {
65
+ // No data processing logic by default;
66
+ }
67
+
68
+ /// <summary>
69
+ /// Called when [custom filters data processed].
70
+ /// </summary>
71
+ /// <param name="data">The data.</param>
72
+ /// <param name="requestInfoModel">The request information model.</param>
73
+ public virtual void OnCustomFiltersDataProcessed ( ref object data , RequestInfoModel requestInfoModel )
74
+ {
75
+ // No data processing logic by default;
76
+ }
77
+
78
+ /// <summary>
79
+ /// Called when [columns filter data processing].
80
+ /// </summary>
81
+ /// <param name="data">The data.</param>
82
+ /// <param name="requestInfoModel">The request information model.</param>
83
+ public virtual void OnColumnsFilterDataProcessing ( ref object data , RequestInfoModel requestInfoModel )
84
+ {
85
+ // No data processing logic by default;
86
+ }
87
+
88
+ /// <summary>
89
+ /// Called when [columns filter data processed].
90
+ /// </summary>
91
+ /// <param name="data">The data.</param>
92
+ /// <param name="requestInfoModel">The request information model.</param>
93
+ public virtual void OnColumnsFilterDataProcessed ( ref object data , RequestInfoModel requestInfoModel )
94
+ {
95
+ // No data processing logic by default;
96
+ }
97
+
98
+ /// <summary>
99
+ /// Called when [sort data processing].
100
+ /// </summary>
101
+ /// <param name="data">The data.</param>
102
+ /// <param name="requestInfoModel">The request information model.</param>
103
+ public virtual void OnSortDataProcessing ( ref object data , RequestInfoModel requestInfoModel )
104
+ {
105
+ // No data processing logic by default;
106
+ }
107
+
108
+ /// <summary>
109
+ /// Called when [sort data processed].
110
+ /// </summary>
111
+ /// <param name="data">The data.</param>
112
+ /// <param name="requestInfoModel">The request information model.</param>
113
+ public virtual void OnSortDataProcessed ( ref object data , RequestInfoModel requestInfoModel )
114
+ {
115
+ // No data processing logic by default;
116
+ }
117
+
118
+ /// <summary>
119
+ /// Called when [paging data processing].
120
+ /// </summary>
121
+ /// <param name="data">The data.</param>
122
+ /// <param name="requestInfoModel">The request information model.</param>
123
+ public virtual void OnPagingDataProcessing ( ref object data , RequestInfoModel requestInfoModel )
124
+ {
125
+ // No data processing logic by default;
126
+ }
127
+
128
+ /// <summary>
129
+ /// Called when [paging data processed].
130
+ /// </summary>
131
+ /// <param name="data">The data.</param>
132
+ /// <param name="requestInfoModel">The request information model.</param>
133
+ public virtual void OnPagingDataProcessed ( ref object data , RequestInfoModel requestInfoModel )
49
134
{
50
135
// No data processing logic by default;
51
136
}
@@ -74,7 +159,19 @@ private void PerformOnActionExecuted(ActionExecutedContext filterContext)
74
159
private void SubscribeToEvents ( IApplicationBase application )
75
160
{
76
161
application . OnDataProcessedEvent += this . OnDataProcessed ;
77
- application . OnSearchDataProcessingEvent += this . OnSearchnDataProcessing ;
162
+ application . OnSearchDataProcessingEvent += this . OnSearchDataProcessing ;
163
+
164
+ application . OnCustomFiltersDataProcessingEvent += this . OnCustomFiltersDataProcessing ;
165
+ application . OnCustomFiltersDataProcessedEvent += this . OnCustomFiltersDataProcessed ;
166
+
167
+ application . OnColumnsFilterDataProcessingEvent += this . OnColumnsFilterDataProcessing ;
168
+ application . OnColumnsFilterDataProcessedEvent += this . OnColumnsFilterDataProcessed ;
169
+
170
+ application . OnSortDataProcessingEvent += this . OnSortDataProcessing ;
171
+ application . OnSortDataProcessedEvent += this . OnSortDataProcessed ;
172
+
173
+ application . OnPagingDataProcessingEvent += this . OnPagingDataProcessing ;
174
+ application . OnPagingDataProcessedEvent += this . OnPagingDataProcessed ;
78
175
}
79
176
80
177
private ActionResult FormatResult ( object resultModel )
0 commit comments