Hi,There is a bug/problem with resizing columns in XamDataGrid. When you have two star fields and atleast one normal field and then start the application. Resize the normal column to take all space. The star columns will take no space. They will also not be able to resize anymore... Now you might think, who does this? This was the smallest reproduction of this problem I could find. Let me explain.
I have about 10-15 fields in my XamDataGrid. Two of them are star fields. When I start my application it will have to fit all of these columns into my application Window. Some of them are wider than others. If I resize one of the normal columns by even the slightest pixel... the column will resize to 0 width and be unuseable.
Reproduction in WPF Samples Browser 2014.2:
- Start WPF Samples Browser 2014.2.
- Go to: xamDataGrid -> Display -> AutoFit Fields.
- In the options box select Use '*' sizing for CustomerID and CompanyName.
- Als select OnlyWithVisibleStarFields in the AutoFitMode dropdown.
- Click and hold the leftside resize thumb of the ContactName column and drag it to the right. Keep dragging untill the CustomerID column is gone.
- Now do the same with the rightside of the ContactName column. Keep dragging untill the CompanyName column is gone.
- Try to resize the Customer or CompanyName columns... impossible.
Is there any way to fix this? It's been happening since the first version of xamDataGrid that i've used and it's still in the latest version.
Hello,
Thank you for your post.
I have logged this behavior with our developers in our tracking system, with an issue ID of 189649. I have also created a support ticket on your behalf with number CAS-151888-F6F0T2 in order to link the development issue to it so that you are automatically updated when a Service Release containing your fix is available for download.
Hello Wimo,
Thank you for your patience during the investigation for your issue.
After the development team researched your issue with ID of 189649 they reached to the conclusion that the behavior you have described is expected. The columns that have their width property set to star are not being resized, after go out of the scope, because there is no space to distribute between other columns. Those Fields that width property is set to star have a weight in the layout of the grid and when there is extra space available they get that extra space distributed amongst them based on their weight. That is the reason why when you resize the field that have width property set to star and the other field with the same settings for width is resized, they are just distributing that available size between them The same behavior could be achieved by setting the size of the Window to be so small, that there is no extra space for the columns, which width property is set to star. What I can suggest you is to create a Product Idea for this functionality:
Steps to create your idea:
Log into the Infragistics Product Ideas site at http://ideas.infragistics.com (creating a new login if needed).
Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)
Add your product idea and be sure to be specific and provide as much detail as possible.
Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. Be convincing!
Include a link to this thread in your idea so product management will be able to look back at this case.
The benefits of submitting the product idea yourself include:
Direct communication with our product management team regarding your product idea.
Notifications whenever new information regarding your idea becomes available.
Additional benefits of the Product Idea system include:
Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
Allow you to shape the future of our products by requesting new controls and products altogether.
You and other developers can discuss existing product ideas with members of our Product Management team.
The product ideas site allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thank you for choosing Infragistics.
So just to expand on what Zhivko wrote, the resize cursor is not shown for fields that are currently at their resolved minimum and maximum - i.e. they cannot be resized. That happens in your described scenario because the size of star fields is based upon the space remaining after sizing the non-star fields similar to the star widths in a Grid panel (i.e. table layout) although it's a little different in the data presenter because those relate to weights in a grid bag layout. In any case when the width of the non-star fields exceeds the available space then the star fields have no room to resize since resizing them would require distributing/adjusting the star value/weight between those star columns and all the star fields are already at their minimum width. Resizing star fields will not take away from the non-star fields. So the non-star fields are still resizable and if you make one or more of them smaller then you would then have space available for the star fields.
I am just checking if there is anything else I can do for you.
If you require any further assistance please do not hesitate to ask.