@@ -6,32 +6,33 @@ Welcome to your new app.
66
77<SurveyPrompt Title =" How is Blazor working for you?" />
88
9- <EjsCalendar TValue =" DateTime?" ></EjsCalendar >
9+ <SfCalendar TValue =" DateTime?" ></SfCalendar >
1010<br />
11- <EjsGrid DataSource =" @EmployeeData" ></EjsGrid >
11+ <SfGrid DataSource =" @EmployeeData" ></SfGrid >
1212
1313@code {
1414 public class Employee
15+ {
16+ public int EmployeeID { get ; set ; }
17+ public string Name { get ; set ; }
18+ public string Designation { get ; set ; }
19+ public DateTime DOJ { get ; set ; }
20+ public double Salary { get ; set ; }
21+ }
22+
23+ public List <Employee > EmployeeData { get ; set ; }
24+
25+ protected override void OnInitialized ()
26+ {
27+ EmployeeData = Enumerable .Range (1 , 75 ).Select (x => new Employee ()
1528 {
16- public int EmployeeID { get ; set ; }
17- public string Name { get ; set ; }
18- public string Designation { get ; set ; }
19- public DateTime DOJ { get ; set ; }
20- public double Salary { get ; set ; }
21- }
22- public List <Employee > EmployeeData { get ; set ; }
23-
24- protected override void OnInitialized ()
25- {
26- EmployeeData = Enumerable .Range (1 , 75 ).Select (x => new Employee ()
27- {
28- EmployeeID = 1000 + x ,
29- Name = (new string [] { " ALFKI" , " ANANTR" , " ANTON" , " BLONP" , " BOLID" })[new Random ().Next (5 )],
30- Designation = (new string [] { " CMBKIO" , " ERIOPL" , " EWOPHL" , " WWIOPPS" , " MLOPSSJ" })[new Random ().Next (5 )],
31- DOJ = DateTime .Now .AddDays (- x ),
32- Salary = 20000 * x
33- }).ToList ();
34- }
29+ EmployeeID = 1000 + x ,
30+ Name = (new string [] { " ALFKI" , " ANANTR" , " ANTON" , " BLONP" , " BOLID" })[new Random ().Next (5 )],
31+ Designation = (new string [] { " CMBKIO" , " ERIOPL" , " EWOPHL" , " WWIOPPS" , " MLOPSSJ" })[new Random ().Next (5 )],
32+ DOJ = DateTime .Now .AddDays (- x ),
33+ Salary = 20000 * x
34+ }).ToList ();
35+ }
3536
36- }
3737
38+ }
0 commit comments