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 #96

Closed madcoda9000 closed 1 year ago

madcoda9000 commented 1 year ago

changed:

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

to :

{(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