We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca95f58 commit e54b57fCopy full SHA for e54b57f
Mvc.JQuery.Datatables.Templates/Views/Shared/DataTable.cshtml
@@ -92,7 +92,7 @@
92
93
@if (Model.GlobalJsVariableName != null)
94
{
95
- @Html.Raw("window['@Model.GlobalJsVariableName'] = dt;")
+ @Html.Raw("window['" + Model.GlobalJsVariableName + "'] = dt;")
96
}
97
})();
98
</script>
Mvc.JQuery.Datatables/DataTableConfigVm.cs
@@ -105,7 +105,7 @@ public string ColumnSortingString
105
public string DrawCallback { get; set; }
106
public LengthMenuVm LengthMenu { get; set; }
107
public int? PageLength { get; set; }
108
- public string GlobalJsVariableName { get; private set; }
+ public string GlobalJsVariableName { get; set; }
109
110
private bool _columnFilter;
111
0 commit comments