We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Deselect all in ColumnChooser don't disable the "Ok" button.

Syncfusion v20.4.0.48
I have a TreeGrid and Grid with the same columns and both have ShowColumnChooser="true".

TreeGrid When I change the state of column by Column Chooser button all work fine but if I deselect all column the button "Ok" in Column Chooser Menu still enable and this problem does not happen in the Grid component. 


1 Reply

PS Pon Selva Jeganathan Syncfusion Team February 17, 2023 02:16 PM UTC

Hi Javier Lamas Collejo,


Query: When I change the state of column by Column Chooser button all work fine but if I deselect all column the button "Ok" in Column Chooser Menu still enable


We prepared a sample based on the information you provided, but we were unable to replicate the issue at our end.


Please refer to the below sample,

https://www.syncfusion.com/downloads/support/directtrac/general/ze/COLUMN~1449142310


Please refer to the below screenshot,




We suspect that you have disabled a column from showing in column chooser by setting ShowInColumnChooser as false. So, the ok button in column chooser is not disabled. The ok button will be disabled only when the Grid has no visible columns.


 

<SfTreeGrid DataSource="@TreeGridData" ShowColumnChooser="true" Toolbar=@ToolbarItems>

    <TreeGridColumns>

        <TreeGridColumn Field="TaskId" HeaderText="Task ID" Width="80" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right"></TreeGridColumn>

        <TreeGridColumn Field="TaskName" HeaderText="Task Name" Width="90" Visible="false" ShowInColumnChooser="false"></TreeGridColumn>

        <TreeGridColumn Field="StartDate" HeaderText=" Start Date" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right" Format="yMd" Type="Syncfusion.Blazor.Grids.ColumnType.Date" Width="90"></TreeGridColumn>

        <TreeGridColumn Field="Duration" HeaderText="Duration" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right" Width="80"></TreeGridColumn>

        <TreeGridColumn Field="Progress" HeaderText="Progress" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right" Width="80"></TreeGridColumn>

    </TreeGridColumns>

</SfTreeGrid>

 


Here we have set the column visibility to false. Now no column will be displayed in TreeGrid when we choose select all checkbox in the column chooser. So, ok button will be in disabled state.


So, we need some more additional information to find the cause of the issue.  We request you to share us the following details for validation.


  1. Complete treegrid code example.
  2. The package version details you are using.
  3. Video demo / screenshot of the issue.
  4. If possible, please try to reproduce the issue in the sample provided or share a reproducible sample.


The requested information will be helpful to proceed further.


Regards,

Pon selva


If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.



Loader.
Live Chat Icon For mobile
Up arrow icon