개정판 f7469196
issue #0000 markup data 수정
Change-Id: I9c8cb708e8d01dca20ea0ff9fd72343dc19a9eef
ID2.Manager/ID2.Manager/Controls/MarkupDetailCellElement.cs | ||
---|---|---|
18 | 18 |
public MarkupDetailCellElement(GridViewColumn column, GridRowElement row) : base(column, row) |
19 | 19 |
{ |
20 | 20 |
this.MinSize = new Size(450,0); |
21 |
this.MaxSize = new Size(450, 100);
|
|
21 |
this.MaxSize = new Size(450,250);
|
|
22 | 22 |
this.BackColor = Color.FromArgb(255, 225, 231, 239); |
23 | 23 |
this.BackColor2 = Color.FromArgb(255, 225, 231, 239); |
24 | 24 |
this.BackColor3 = Color.FromArgb(255, 225, 231, 239); |
... | ... | |
55 | 55 |
layoutRoot.Children.Add(textElement); |
56 | 56 |
|
57 | 57 |
listView = new RadListViewElement(); |
58 |
|
|
58 |
|
|
59 | 59 |
listView.ViewType = ListViewType.DetailsView; |
60 | 60 |
listView.ShowColumnHeaders = false; |
61 |
|
|
61 | 62 |
listView.ShouldHandleMouseInput = false; |
62 | 63 |
listView.NotifyParentOnMouseInput = true; |
64 |
|
|
63 | 65 |
listView.ShowGridLines = true; |
66 |
listView.HorizontalScrollState = ScrollState.AlwaysHide; |
|
67 |
|
|
64 | 68 |
//listView.BestFitColumns(ListViewBestFitColumnMode.AllCells); |
65 | 69 |
listView.ColumnCreating += ListView_ColumnCreating; |
66 | 70 |
|
67 | 71 |
layoutRoot.Orientation = System.Windows.Forms.Orientation.Horizontal; |
68 | 72 |
layoutRoot.Children.Add(listView); |
69 | 73 |
|
70 |
this.Children.Add(layoutRoot); |
|
74 |
//this.Children.Add(layoutRoot);
|
|
71 | 75 |
} |
72 | 76 |
|
73 | 77 |
private void ListView_ColumnCreating(object sender, ListViewColumnCreatingEventArgs e) |
... | ... | |
86 | 90 |
} |
87 | 91 |
else |
88 | 92 |
{ |
89 |
e.Column.AutoSizeMode = ListViewBestFitColumnMode.AllCells; |
|
93 |
e.Column.MinWidth = 270; |
|
94 |
e.Column.MaxWidth = 270; |
|
95 |
//e.Column.AutoSizeMode = ListViewBestFitColumnMode.AllCells; |
|
90 | 96 |
} |
91 | 97 |
|
92 | 98 |
} |
... | ... | |
117 | 123 |
listView.DataSource = items; |
118 | 124 |
|
119 | 125 |
listView.SelectedItem = null; |
120 |
this.Focus(); |
|
121 |
//listView.BestFitColumns(ListViewBestFitColumnMode.AllCells);
|
|
126 |
//this.Focus();
|
|
127 |
listView.BestFitColumns(ListViewBestFitColumnMode.DataCells);
|
|
122 | 128 |
} |
123 | 129 |
else |
124 | 130 |
{ |
... | ... | |
134 | 140 |
base.UpdateInfoCore(); |
135 | 141 |
} |
136 | 142 |
|
137 |
|
|
138 |
|
|
139 | 143 |
protected override GridTableElement CreateChildTableElement() |
140 | 144 |
{ |
141 | 145 |
var table = base.CreateChildTableElement(); |
142 |
|
|
143 |
|
|
144 |
table.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; |
|
146 |
table.TableHeaderHeight = 0; |
|
147 |
//table.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; |
|
145 | 148 |
return table; |
146 | 149 |
} |
147 | 150 |
|
ID2.Manager/ID2.Manager/ID2.Manager.csproj | ||
---|---|---|
58 | 58 |
</PropertyGroup> |
59 | 59 |
<ItemGroup> |
60 | 60 |
<Reference Include="PresentationCore" /> |
61 |
<Reference Include="RadControlSpy, Version=2023.1.314.48, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL"> |
|
62 |
<SpecificVersion>False</SpecificVersion> |
|
63 |
<HintPath>C:\Program Files (x86)\Progress\Telerik UI for WinForms R1 2023\Bin40\RadControlSpy.dll</HintPath> |
|
64 |
</Reference> |
|
61 | 65 |
<Reference Include="System" /> |
62 | 66 |
<Reference Include="System.Core" /> |
63 | 67 |
<Reference Include="System.Xml.Linq" /> |
ID2.Manager/ID2.Manager/Main.cs | ||
---|---|---|
43 | 43 |
{ |
44 | 44 |
InitializeComponent(); |
45 | 45 |
|
46 |
//Telerik.WinControls.RadControlSpy.RadControlSpyForm radControlSpyForm = new Telerik.WinControls.RadControlSpy.RadControlSpyForm();
|
|
47 |
//radControlSpyForm.Show();
|
|
46 |
Telerik.WinControls.RadControlSpy.RadControlSpyForm radControlSpyForm = new Telerik.WinControls.RadControlSpy.RadControlSpyForm(); |
|
47 |
radControlSpyForm.Show(); |
|
48 | 48 |
|
49 | 49 |
SpreadsheetInfo.SetLicense(Properties.Settings.Default.GemBoxLicense); |
50 | 50 |
|
... | ... | |
79 | 79 |
//this.radGridViewDocuments.MasterView.TableSearchRow.InitialSearchResultsTreshold = ; |
80 | 80 |
this.radGridViewDocuments.MasterView.TableSearchRow.IsVisible = false; |
81 | 81 |
|
82 |
var detailGridview = new DetailGridViewTemplate(); |
|
83 |
detailGridview.DataSource = Markups; |
|
84 |
this.radGridViewDocuments.MasterTemplate.Templates.Add(detailGridview); |
|
85 |
|
|
86 |
GridViewRelation relation = new GridViewRelation(this.radGridViewDocuments.MasterTemplate); |
|
87 |
relation.ChildTemplate = detailGridview; |
|
88 |
relation.RelationName = "MarkupTextRelation"; |
|
89 |
relation.ParentColumnNames.Add("DocumentNo"); |
|
90 |
relation.ChildColumnNames.Add("DOCUMENT_ID"); |
|
91 |
this.radGridViewDocuments.Relations.Add(relation); |
|
92 |
|
|
82 | 93 |
var openProjectView = new OpenProjectView() |
83 | 94 |
{ |
84 | 95 |
Dock = DockStyle.Fill |
... | ... | |
839 | 850 |
{ |
840 | 851 |
//if (e.Row.RowInfo.ChildRows.Count() > 0) |
841 | 852 |
//{ |
842 |
e.CellElement = new MarkupDetailCellElement(e.Column, e.Row);
|
|
853 |
e.CellElement = new MarkupDetailCellElement(e.Column, e.Row); |
|
843 | 854 |
//} |
844 | 855 |
} |
845 | 856 |
} |
내보내기 Unified diff