Grid columns do not grow/shrink with grid state feature #14678
-
The grid columns do not grow/shrink when the state of the grid is saved and the size of the grid has been changed manually using a splitter component. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @palrajarockiaraj, In an effort to reproduce the described scenario, I created this sample demonstrating an Hence, I am wondering what are the columns sizing settings in your app in this case? Is it possible that when restoring the state, their width settings get overridden to something else? In conclusion, please, check out the referenced resources and let me know if you still need assistance on the matter. If so, please, provide more information about your configuration. Ideally, you could fork and modify the above referenced sample with only the relevant code in order to reproduce the issue. Having a working sample on our side, which we can debug will be highly appreciated so that we can proceed with assisting you. |
Beta Was this translation helpful? Give feedback.
-
Thank you for following up! According to the previously referenced Column sizing section in the Grid Sizing documentation topic, when a pixel width is set to columns: "they stick to that size, unless they are resized manually. Since the combined width of the columns is static, it can be less than the IgxGrid width or exceed it." , which means that what you are observing is expected and by design. If you like to achieve a behavior, where the columns grow and shrink along with the grid width, setting percentage values is the approach to adopt. |
Beta Was this translation helpful? Give feedback.
Hi @palrajarockiaraj,
Thank you for following up!
According to the previously referenced Column sizing section in the Grid Sizing documentation topic, when a pixel width is set to columns:
"they stick to that size, unless they are resized manually. Since the combined width of the columns is static, it can be less than the IgxGrid width or exceed it."
, which means that what you are observing is expected and by design.
If you like to achieve a behavior, where the columns grow and shrink along with the grid width, setting percentage values is the approach to adopt.