File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ private static string RenderScriptString<T>(this GridBuilder<T> grid)
288288 data: { grid . GetDataStr ( ) }
289289 }},
290290 columns: [{ string . Join ( ", " , grid . _columns . Select ( a => $@ "{{
291- data: '{ ( grid . _camelCase ? char . ToLowerInvariant ( a . Data [ 0 ] ) + a . Data . Substring ( 1 ) : a . Data ) } ',
291+ data: '{ ( a . Data != null ? ( grid . _camelCase ? char . ToLowerInvariant ( a . Data [ 0 ] ) + a . Data . Substring ( 1 ) : a . Data ) : string . Empty ) } ',
292292 name: '{ a . Data } ',
293293 defaultContent: '{ a . DefaultContent } ',
294294 orderable: { a . Orderable . ToLowString ( ) } ,
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ public static IHtmlContent RenderScript<T>(this GridBuilder<T> grid)
257257 data: { grid . GetDataStr ( ) }
258258 }},
259259 columns: [{ string . Join ( ", " , grid . _columns . Select ( a => $@ "{{
260- data: '{ ( grid . _camelCase ? char . ToLowerInvariant ( a . Data [ 0 ] ) + a . Data . Substring ( 1 ) : a . Data ) } ',
260+ data: '{ ( a . Data != null ? ( grid . _camelCase ? char . ToLowerInvariant ( a . Data [ 0 ] ) + a . Data . Substring ( 1 ) : a . Data ) : string . Empty ) } ',
261261 name: '{ a . Data } ',
262262 defaultContent: '{ a . DefaultContent } ',
263263 orderable: { a . Orderable . ToLowString ( ) } ,
You can’t perform that action at this time.
0 commit comments