Column chooser does not work on PrimaryKey column

Hello,

I'm using version 20.2.0.49. I want to show/hide Primary Key column with column chooser; when deselected it hides the id column, but when selected again it does not show the column. Tried with an extra button in toolbar and OnToolbarClick event to toggle Visible parameter of Primary Key column an the field shows for less than a second before hiding it again.

Thanks for your comments,

Erick





3 Replies

ER Erick September 15, 2022 05:14 AM UTC

Found the problem. Since I'm using GUID as Id, it's a long field and didn't have AutoFit="true". This hides entirely the field whenever I try to bring it back in column chooser.

However, when I start with Visible="false" I cannot bring back the column with column chooser. I guess it has something to do with the grid width.


Regards,

Erick



SP Sarveswaran Palani Syncfusion Team September 16, 2022 07:48 PM UTC

Hi Erick,


Greetings from Syncfusion support.


We have analyzed your query and prepared sample based on your requirement in our latest nuget version. But we’re not able to reproduce the reported issue at our end. Kindly refer the attached sample and if possible reproduce the reported issue in the provided sample. It’ll be more helpful for us to validate the query and provide the solution as early as possible.


Please get back to if you have any further queries.


Regards,

Sarveswaran PK



SP Sarveswaran Palani Syncfusion Team September 16, 2022 07:49 PM UTC

Refer the attached sample


Attachment: SfGridColumnChooser_1af67a8e.zip

Loader.
Up arrow icon