ekondur / DatatableJS

Jquery datatable with entity framework using MVC html helper
MIT License
36 stars 15 forks source link

Removing data null check in Template #95 #97

Closed madcoda9000 closed 1 year ago

madcoda9000 commented 1 year ago

Replaced:

{(string.IsNullOrEmpty(a.Render) ? string.Empty : $"'render': function(data, type, row, meta) {{ if (data == null) {{ return ''; }} else {{ return {a.Render}; }} }}")}

With : {(string.IsNullOrEmpty(a.Render) ? string.Empty : $"'render': function(data, type, row, meta) {{ return {a.Render}; }}")}

in the following files:

DatatableJS -> JSHelper.cs DatatableJS -> RenderHelper.cs DatatableJS.Net -> JSHelper.cs