I'm developing a web application and I'm using a lot of grid. I'm trying to avoid having a lot of customization for each one of them. I'd like that the grid set each column's initial width based on the content. I. e.:
Short name NameJF John FooAB Ana Bar
All values for 'Short name' are 2 chars long, and the longest value for 'Name' is 'John Foo' with 8 chars. So in this case, the grid should set 'Short name' column's width to 20%, and 'Name' column's width to 80%.
In case this functionality does not exisist, could you give me some clues so I know where to start building it?
Thanks,Diego
Hi,
Thank you for posting in Infragistics forums! Currently we are working towards improving this functionality. You can expect it in one of our future Service Releases. Until then you can set the width of the columns manually in grid’s options.
Kind regards, Petko Zhekov Software Developer
Hello Petko, thanks for the quick response.
Is there any way I can keep updated about this feature progress?
Thanks,Diego.
Hello,
We already have this behavior logged in our internal tracking system with a Development ID of 193267. A support case is created on your behalf with number CAS-156270-Z4K0Q0, so that you can be notified when the issue is fixed.
You can find your active cases under Account - Support Activity in our website. Select your ticket and go to Development Issues tab to view the status of related bugs.
Let me know if I may be of further assistance.
Kind Regards,
Petko Zhekov
Software Developer
Hello intecomp,
Your development issue has been addressed in our latest service release which is available for download.
Please let me know if you come across any further issues with the new service release or if you have any further questions .
Infragistics, Inc.
Hello Petko, thanks for the update on this.
I've downloaded and installed the new version (v 15.1.20151.2112 as I can see in infragistics.core.js). However I still can't get the behavior I'm looking for.
I've tried both auto-generating the columns and setting up the columns array (this is the one I really need). In the second case I didn't set any width manually for each column. Anyway, the columns are always sized proportionally to the total amount of columns, and not to their content.
Am I doing something wrong?
Hi intecomp,
To enable auto sizing of the column you need to set its width to “*”.
Let me know if you have any further questions!
Kind regards,
No, now it's working.
Thanks!
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
I haven't received any emails, so I hadn't seen it.
I'll download it and give it a try.
Thanks Petko!
I wrote you in the case. Did you have the chance to see my message? You can see it in the ACTIVE CASES tab in the Support Activity section in your account.
Hello.
I just wanted to check if you had seen the error and if its bug or I am using it wrong.