-
Notifications
You must be signed in to change notification settings - Fork 134
/
GridOptions.cs
79 lines (67 loc) · 2.25 KB
/
GridOptions.cs
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
namespace GridBlazor
{
public class GridOptions
{
public GridOptions(string gridName)
{
GridName = gridName;
Selectable = false;
MultiSelectable = false;
AllowMultipleFilters = false;
ShowGridItemsCount = false;
RenderRowsOnly = false;
Striped = false;
}
public GridOptions()
: this(string.Empty)
{
}
/// <summary>
/// Is multiple filters allowed
/// </summary>
public bool AllowMultipleFilters { get; set; }
/// <summary>
/// Gets or set grid items selectable
/// </summary>
public bool Selectable { get; set; }
/// <summary>
/// Gets or sets a value indicating whether multiple grid items are selectable
/// </summary>
/// <value>
/// <c>true</c> if multi selectable; otherwise, <c>false</c>.
/// </value>
/// <autogeneratedoc />
/// TODO Edit XML Comment Template for MultiSelectable
public bool MultiSelectable {get;set;}
/// <summary>
/// Gets or set init selection on selectable grids
/// </summary>
public bool InitSelection { get; set; }
/// <summary>
/// Specify grid Id on the client side
/// </summary>
public string GridName { get; set; }
/// <summary>
/// Specify to render grid body only
/// </summary>
public bool RenderRowsOnly { get; set; }
/// <summary>
/// Does items count need to show
/// - Author Jeeva J
/// </summary>
public bool ShowGridItemsCount { get; set; }
/// <summary>
/// To show string while show grid items count
/// - Author Jeeva J
/// </summary>
public string GridCountDisplayName { get; set; }
/// <summary>
/// Get value for striped grid
/// </summary>
public bool Striped { get; set; }
public static GridOptions Create(string gridName)
{
return new GridOptions(gridName);
}
}
}