OdontonetEs Posted December 28, 2023 Share Posted December 28, 2023 Good morning. I have the following problem. When I hide certain columns from a TUniDBgrid control I can save the indexes of said columns in a cookie, but when I open the application again and read the data from the saved cookie, I can no longer use the ajax event to show or hide other columns. This happens once I use the property uniDbGrid.columns[x].visible := false when starting Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 28, 2023 Share Posted December 28, 2023 1 minute ago, OdontonetEs said: but when I open the application again and read the data from the saved cookie, I can no longer use the ajax event to show or hide other columns. This happens once Hello, Your case is not very clear. Quote Link to comment Share on other sites More sharing options...
OdontonetEs Posted December 28, 2023 Author Share Posted December 28, 2023 1- At client side runtime I use this context menu to hide the columns. 2- When the form/frame is destroyed I save the indexes of the hidden columns in a cookie. 3- When it starts again, they read the cookie and according to the hidden index the column with the property grid.columns[innex].visible := false. So far so good The problem is that when I want to go to point 1 again to hide or show columns, it does not work correctly, it seems that in point 3 I am missing something from an ajax call from the grid Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 28, 2023 Share Posted December 28, 2023 Do you have a simple testcase to check? Quote Link to comment Share on other sites More sharing options...
OdontonetEs Posted December 28, 2023 Author Share Posted December 28, 2023 Sorry, I don't have it, I had to do it in a small example. I try to prepare it so they can review it. Thank you! Quote Link to comment Share on other sites More sharing options...
OdontonetEs Posted December 28, 2023 Author Share Posted December 28, 2023 Well, I just prepared a small project only with the mainform form and it works excellent. I will continue checking to see if I detect the flaw in the original project. Thank you so much Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 28, 2023 Share Posted December 28, 2023 Ok, np. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.