We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b81a3b commit 812aeaeCopy full SHA for 812aeae
Mvc.JQuery.Datatables/DataTableConfigVm.cs
@@ -79,17 +79,28 @@ public JToken SearchCols
79
80
81
82
+ private string _dom;
83
+
84
public string Dom
85
{
- get {
- var sdom = "";
86
- if (ColVis) sdom += "C";
87
- if (TableTools) sdom += "T<\"clear\">";
88
- if (ShowPageSizes) sdom += "l";
89
- if (ShowSearch) sdom += "f";
90
- sdom += "tipr";
91
- return sdom;
+ get
+ {
+ if (!string.IsNullOrEmpty(_dom))
+ return _dom;
+ string str = "";
92
+ if (this.ColVis)
93
+ str += "C";
94
+ if (this.TableTools)
95
+ str += "T<\"clear\">";
96
+ if (this.ShowPageSizes)
97
+ str += "l";
98
+ if (this.ShowSearch)
99
+ str += "f";
100
+ return str + "tipr";
101
}
102
103
+ set { _dom = value; }
104
105
106
public bool ColVis { get; set; }
0 commit comments