File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
CS/OutlookInspired.Win/Editors/ProgressEditor Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 3
3
using DevExpress . ExpressApp . Editors ;
4
4
using DevExpress . ExpressApp . Model ;
5
5
using DevExpress . ExpressApp . Win . Editors ;
6
+ using DevExpress . Utils ;
6
7
using DevExpress . XtraEditors . Repository ;
7
8
using DevExpress . XtraPivotGrid ;
8
9
@@ -54,7 +55,11 @@ protected override void OnViewControlsCreated(){
54
55
var pivotGridControl = pivotGridListEditor . PivotGridControl ;
55
56
var repositoryItems = AddRepositoryItems ( pivotGridControl , View ) ;
56
57
pivotGridControl . CustomCellEdit += ( _ , e ) => {
57
- if ( ! repositoryItems . TryGetValue ( e . DataField , out var item ) ) return ;
58
+ if ( ! repositoryItems . TryGetValue ( e . DataField , out var item ) ) return ;
59
+ if ( item is XafRepositoryItemProgressBar xafRepositoryItemProgressBar ) {
60
+ xafRepositoryItemProgressBar . DisplayFormat . FormatType = FormatType . Custom ;
61
+ xafRepositoryItemProgressBar . DisplayFormat . FormatString = "{0:P0}" ;
62
+ }
58
63
e . RepositoryItem = item ;
59
64
} ;
60
65
pivotGridControl . CustomDrawCell += ( _ , e ) => {
You can’t perform that action at this time.
0 commit comments