|
1 | 1 | @page "/" |
2 | 2 | @using Master_Detail_Grid.Data |
3 | 3 | @inject Microsoft.AspNetCore.Components.NavigationManager UriHelper |
4 | | -@using Syncfusion.Blazor.Data |
5 | 4 |
|
6 | 5 | <SfGrid Width="1200px" DataSource="@Employees"> |
7 | 6 | <GridTemplates> |
|
18 | 17 | </ChildContent> |
19 | 18 | <ContentTemplate> |
20 | 19 | <div> |
21 | | - <div style="float:left;padding:45px;padding-top:70px"><img class="photo" src="@UriHelper.ToAbsoluteUri($"https://blazor.syncfusion.com/demos/images/Grid/{Employee.EmployeeID}.png")" alt="@Employee.EmployeeID" /></div> |
22 | | - <div style="padding-top:42px"> |
23 | | - <span style="font-size: x-large;font-weight: bold;">@Employee.FirstName @Employee.LastName</span><br /> |
24 | | - <h6 style="font-weight:400 !important;">@Employee.Title</h6><br /> |
| 20 | + <div class="personal-wrap"><img class="photo" src="@UriHelper.ToAbsoluteUri($"https://blazor.syncfusion.com/demos/images/Grid/{Employee.EmployeeID}.png")" alt="@Employee.EmployeeID" /></div> |
| 21 | + <div class="top-padding"> |
| 22 | + <span class="first-name">@Employee.FirstName @Employee.LastName</span><br /> |
| 23 | + <h6 class="title-font">@Employee.Title</h6><br /> |
25 | 24 | <span class="title">Country:</span> <span class="content">@Employee.Country</span><br /> |
26 | 25 | <span class="title">Postal Code:</span> <span class="content">@Employee.Postal</span><br /> |
27 | 26 | <span class="title">Mail:</span> <span class="content">@Employee.Email</span> |
|
34 | 33 | <TabHeader Text="Sales Details"></TabHeader> |
35 | 34 | </ChildContent> |
36 | 35 | <ContentTemplate> |
37 | | - <div style="padding:25px"> |
| 36 | + <div class="inner-padding"> |
38 | 37 | <SfGrid Width="740px" TValue="Orders" Query="@(new Query().Where("EmployeeID", "equal", Employee.EmployeeID))" AllowPaging="true"> |
39 | 38 | <GridPageSettings PageSize="4"></GridPageSettings> |
40 | 39 | <SfDataManager Url="https://js.syncfusion.com/demos/ejservices/Wcf/Northwind.svc/Orders" CrossDomain="true"></SfDataManager> |
|
54 | 53 | <TabHeader Text="Contact Address"></TabHeader> |
55 | 54 | </ChildContent> |
56 | 55 | <ContentTemplate> |
57 | | - <div style="padding:25px"> |
58 | | - <div style="height:260px;width:450px;float:left"> |
| 56 | + <div class="inner-padding"> |
| 57 | + <div class="left-div-wrap"> |
59 | 58 | <SfMaps> |
60 | 59 | <MapsCenterPosition Latitude="@MapDatum[0].latitude" Longitude="@MapDatum[0].longitude"></MapsCenterPosition> |
61 | | - <MapsZoomSettings Enable="false" ZoomFactor=10></MapsZoomSettings> |
| 60 | + <MapsZoomSettings Enable="false" ZoomFactor="7"></MapsZoomSettings> |
62 | 61 | <MapsLayers> |
63 | 62 | <MapsLayer LayerType="ShapeLayerType.OSM" AnimationDuration=0> |
64 | 63 | <MapsMarkerSettings> |
65 | | - <MapsMarker Visible="true" DataSource="@MapDatum" Height='30' Width='30' Shape='Syncfusion.Blazor.Maps.MarkerType.Image' ImageUrl='https://blazor.syncfusion.com/demos/styles/images/maps/ballon.png'> |
| 64 | + <MapsMarker Visible="true" DataSource="@MapDatum" Height='30' Width='30' Shape='MarkerType.Image' ImageUrl='https://blazor.syncfusion.com/demos/styles/images/maps/ballon.png'> |
66 | 65 | </MapsMarker> |
67 | 66 | </MapsMarkerSettings> |
68 | 67 | </MapsLayer> |
69 | 68 | </MapsLayers> |
70 | 69 | </SfMaps> |
71 | 70 | </div> |
72 | | - <div style="width:265px;float:left;padding:40px"> |
| 71 | + <div class="right-div-wrap"> |
73 | 72 | <h4>Contact Address:</h4> |
74 | 73 | <span>@Employee.Address</span>,<br /> |
75 | 74 | <span>@Employee.City</span>,<br /> |
|
84 | 83 | <TabHeader Text="Meeting Schedules"></TabHeader> |
85 | 84 | </ChildContent> |
86 | 85 | <ContentTemplate> |
87 | | - <div style="width:450px;padding:25px"> |
| 86 | + <div class="schedule-div"> |
88 | 87 | <SfSchedule TValue="MeetingSchedule" Height="260px" SelectedDate="new DateTime(2020, 3, 2)" CurrentView="View.Agenda"> |
89 | 88 | <ScheduleEventSettings DataSource="@ScheduleData" Query="@(new Query().Where("EID", "equal", Employee.EmployeeID))"></ScheduleEventSettings> |
90 | 89 | </SfSchedule> |
|
116 | 115 | } |
117 | 116 | } |
118 | 117 |
|
119 | | -<style type="text/css" class="cssStyles"> |
| 118 | +<style type="text/css"> |
| 119 | + .personal-wrap { |
| 120 | + float: left; |
| 121 | + padding: 45px; |
| 122 | + padding-top: 70px |
| 123 | + } |
| 124 | + .top-padding { |
| 125 | + padding-top: 42px; |
| 126 | + } |
| 127 | + .first-name { |
| 128 | + font-size: x-large; |
| 129 | + font-weight: bold; |
| 130 | + } |
120 | 131 | .photo { |
121 | 132 | width: 100px; |
122 | 133 | height: 100px; |
123 | 134 | border-radius: 50px; |
124 | 135 | box-shadow: inset 0 0 1px #e0e0e0, inset 0 0 14px rgba(0,0,0,0.2); |
125 | 136 | } |
126 | | -
|
127 | 137 | .title { |
128 | 138 | font-size: large; |
129 | 139 | font-weight: 500; |
130 | 140 | } |
131 | | -
|
| 141 | + .title-font { |
| 142 | + font-weight: 400; |
| 143 | + } |
| 144 | + .left-div-wrap { |
| 145 | + height: 260px; |
| 146 | + width: 450px; |
| 147 | + float: left; |
| 148 | + } |
| 149 | + .right-div-wrap { |
| 150 | + width: 265px; |
| 151 | + float: left; |
| 152 | + padding: 40px; |
| 153 | + } |
| 154 | + .inner-padding { |
| 155 | + padding: 25px; |
| 156 | + } |
| 157 | + .schedule-div { |
| 158 | + width: 450px; |
| 159 | + padding: 25px; |
| 160 | + } |
132 | 161 | .content { |
133 | 162 | font-size: large; |
134 | 163 | } |
135 | | -
|
136 | 164 | .e-tab .e-content { |
137 | 165 | overflow-y: hidden; |
138 | 166 | } |
139 | | -
|
140 | 167 | .e-tab .e-tab-header { |
141 | 168 | border: 0; |
142 | 169 | } |
143 | | -
|
144 | | - .e-tab{ |
| 170 | + .e-tab { |
145 | 171 | padding: 10px; |
146 | 172 | } |
147 | 173 | </style> |
0 commit comments