@@ -76,7 +76,7 @@ var __meta__ = {
7676
7777 UL_EL = '<ul unselectable="on"/>' ,
7878 LIST_EL = "<div class='k-list'/>" ,
79- NO_DATA_EL = '<div class="k-no-data" style="display: none;" ></div>' ,
79+ NO_DATA_EL = '<div class="k-no-data"></div>' ,
8080 LIST_FOOTER_EL = '<div class="k-list-footer"></div>' ,
8181 TABLE_FOOTER_EL = '<div class="k-table-footer">' +
8282 '<span class="k-table-td"></span>' +
@@ -311,6 +311,7 @@ var __meta__ = {
311311
312312 _columnsHeader : function ( ) {
313313 var list = this ;
314+ var $header ;
314315 var columnsHeader = $ ( list . columnsHeader ) ;
315316
316317 this . _angularElement ( columnsHeader , "cleanup" ) ;
@@ -332,10 +333,7 @@ var __meta__ = {
332333 var widthStyle = '' ;
333334
334335 if ( currentWidth && ! isNaN ( currentWidthInt ) ) {
335- widthStyle += "style='width:" ;
336- widthStyle += currentWidthInt ;
337- widthStyle += percentageUnitsRegex . test ( currentWidth ) ? "%" : "px" ;
338- widthStyle += ";'" ;
336+ widthStyle += `${ kendo . attr ( 'style-width' ) } ="${ currentWidthInt } ${ percentageUnitsRegex . test ( currentWidth ) ? "%" : "px" } "` ;
339337 }
340338
341339 colGroup += "<col " + widthStyle + "/>" ;
@@ -344,14 +342,18 @@ var __meta__ = {
344342 row += columnsHeaderTemplate ( currentColumn ) ;
345343 row += "</th>" ;
346344 }
345+
347346 colGroup += "</colgroup>" ;
348347 row += "</tr>" ;
349348 header += colGroup ;
350349 header += "<thead class='k-table-thead'>" ;
351350 header += row ;
352351 header += "</thead></table></div></div>" ;
353352
354- list . columnsHeader = columnsHeader = $ ( header ) ;
353+ $header = $ ( header ) ;
354+ kendo . applyStylesFromKendoAttributes ( $header , [ "width" ] ) ;
355+
356+ list . columnsHeader = columnsHeader = $header ;
355357 list . list . prepend ( columnsHeader ) ;
356358
357359 this . _angularElement ( list . columnsHeader , "compile" ) ;
@@ -371,7 +373,7 @@ var __meta__ = {
371373 return ;
372374 }
373375
374- list . noData = $ ( NO_DATA_EL ) . appendTo ( list . list ) ;
376+ list . noData = $ ( NO_DATA_EL ) . hide ( ) . appendTo ( list . list ) ;
375377 list . noDataTemplate = typeof template !== "function" ? kendo . template ( template ) : template ;
376378 } ,
377379
@@ -2147,7 +2149,7 @@ var __meta__ = {
21472149 this . element . addClass ( TABLE_LIST ) ;
21482150 } else {
21492151 this . content = this . element . wrap ( "<div class='k-list-content k-list-scroller' unselectable='on'></div>" ) . parent ( ) ;
2150- this . header = this . content . before ( '<div class="k-list-group-sticky-header" style="display:none" ></div>' ) . prev ( ) ;
2152+ this . header = this . content . before ( $ ( '<div class="k-list-group-sticky-header"></div>' ) . hide ( ) ) . prev ( ) ;
21512153 this . element . addClass ( LIST_UL ) ;
21522154 }
21532155
@@ -2941,11 +2943,9 @@ var __meta__ = {
29412943 var widthStyle = '' ;
29422944
29432945 if ( currentWidth && ! isNaN ( currentWidthInt ) ) {
2944- widthStyle += "style='width:" ;
2945- widthStyle += currentWidthInt ;
2946- widthStyle += percentageUnitsRegex . test ( currentWidth ) ? "%" : "px" ;
2947- widthStyle += ";'" ;
2946+ widthStyle += `${ kendo . attr ( 'style-width' ) } ="${ currentWidthInt } ${ percentageUnitsRegex . test ( currentWidth ) ? "%" : "px" } "` ;
29482947 }
2948+
29492949 item += "<span class='k-table-td' " + widthStyle + ">" ;
29502950 item += this . templates [ "column" + i ] ( dataItem ) ;
29512951 item += "</span>" ;
@@ -2956,7 +2956,7 @@ var __meta__ = {
29562956
29572957 _render : function ( ) {
29582958 var html = "" ;
2959-
2959+ var cspCompliantHtml ;
29602960 var i = 0 ;
29612961 var idx = 0 ;
29622962 var context ;
@@ -2999,7 +2999,10 @@ var __meta__ = {
29992999
30003000 this . _view = dataContext ;
30013001
3002- this . element [ 0 ] . innerHTML = html ;
3002+ cspCompliantHtml = $ ( html ) ;
3003+ kendo . applyStylesFromKendoAttributes ( cspCompliantHtml , [ "width" , "background-color" ] ) ;
3004+
3005+ this . element . empty ( ) . append ( cspCompliantHtml ) ;
30033006
30043007 if ( isGrouped && dataContext . length ) {
30053008 this . _renderHeader ( ) ;
0 commit comments