File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Razor" >
22
33 <PropertyGroup >
4- <Version >10.6.2-beta01 </Version >
4+ <Version >10.6.2-beta02 </Version >
55 </PropertyGroup >
66
77 <ItemGroup >
Original file line number Diff line number Diff line change @@ -1369,17 +1369,6 @@ private void ResetTableColumns()
13691369 if ( item == null )
13701370 {
13711371 _tableColumnStates . Add ( CreateTableColumnState ( col ) ) ;
1372- continue ;
1373- }
1374-
1375- if ( ! ShowColumnList )
1376- {
1377- item . Visible = col . GetVisible ( _screenSize ) ;
1378- }
1379-
1380- if ( ! AllowResizing )
1381- {
1382- item . Width = col . Width ;
13831372 }
13841373 }
13851374 }
@@ -1461,15 +1450,19 @@ private async Task OnTableRenderAsync(bool firstRender)
14611450 /// <para lang="en">Set Column Visible Method</para>
14621451 /// </summary>
14631452 /// <param name="columns"></param>
1464- public void ResetVisibleColumns ( IEnumerable < TableColumnState > columns )
1453+ public void ResetVisibleColumns ( IReadOnlyCollection < TableColumnState > columns )
14651454 {
14661455 foreach ( var col in columns )
14671456 {
14681457 var column = _tableColumnStates . Find ( i => i . Name == col . Name ) ;
14691458 if ( column != null )
14701459 {
14711460 column . Visible = col . Visible ;
1472- column . Width = col . Width ;
1461+
1462+ if ( col . Width . HasValue )
1463+ {
1464+ column . Width = col . Width ;
1465+ }
14731466 }
14741467 }
14751468
You can’t perform that action at this time.
0 commit comments