forked from syncfusion/blazor-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVirtualData.cs
More file actions
37 lines (35 loc) · 1.17 KB
/
Copy pathVirtualData.cs
File metadata and controls
37 lines (35 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ej2_blazor_samples;
namespace ej2_blazor_virtualdata
{
public class PivotVirtualData
{
public string id { get; set; }
public string year { get; set; }
public string country { get; set; }
public string city { get; set; }
public double amount { get; set; }
public DateTime date { get; set; }
public static List<PivotVirtualData> GetVirtualData()
{
List<PivotVirtualData> VirtualData = new List<PivotVirtualData>();
for (int i = 1; i <= 50000; i++)
{
PivotVirtualData p = new PivotVirtualData
{
id = "PRO-" +(10000+i),
year = (new string[] { "FY 2015", "FY 2016", "FY 2017", "FY 2018", "FY 2019" })[new Random().Next(5)],
country = "USA",
city = "New York",
amount = (3.4*i)+500,
//date = Convert.ToDateTime("2013/01/06")
};
VirtualData.Add(p);
}
return VirtualData;
}
}
}