Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › Data Grid › Double-click to auto-size column doesn't work
Tagged: column resize in grid
- This topic has 4 replies, 2 voices, and was last updated 4 years, 1 month ago by aconley. 
- 
		AuthorPosts
- 
		
			
				
September 13, 2021 at 5:59 pm #102200aconley MemberI’m using Angular 12 and trying to make it so the grid column will auto-size when I double-click the right border in the column header, and I found the following property in the GridBehavior object that seems to fit this functionality: allowColumnAutoSizeOnDoubleClick 
 The property has the following description: “Auto-Resize on double-click of a column’s right border. Default value: true”
 However, when I try to double-click on the column’s right border, the manual column resizing kicks in and only decreases the column width by a pixel or 3. Since this behavior is supposed to be enabled by default, you can see how it doesn’t work properly in the demo site:
 https://www.htmlelements.com/angular/demos/grid/column-resize/
 Is there a trick to get this to work?September 14, 2021 at 5:46 am #102201admin KeymasterHi aconley, 
 This is an issue in our code which will be resolved in the next version. In previous versions the allowColumnAutoSizeOnDoubleClick was wrongly part of the ‘appearance’ settings and the resizing still checks for that.
 Best regards,
 Peter Stoev
 Smart UI Team
 https://www.htmlelements.com/September 14, 2021 at 12:49 pm #102203aconley MemberFirst, thanks for the quick response. 
 I’m sure you’ve probably had to answer this in other threads, but since this forum doesn’t allow searching (which is ridiculous, just saying), can you tell me when you expect the new release to be available?
 Also, as a workaround, I was expecting to be able to set that property on both the appearance and the behavior settings, but when I did that, nothing changed, double-click still didn’t work to auto-size the column.September 14, 2021 at 1:30 pm #102204admin KeymasterHi aconley, 
 That is an issue in our code which needs to be fixed in order to use the column/row ‘autoSize’ feature. You can subscribe to our newsletter so when we release a new version, you will receive an email. We usually release a new version every 1.5-2 months.
 Best regards,
 Peter Stoev
 Smart UI Team
 https://www.htmlelements.com/September 23, 2021 at 8:00 pm #102295aconley MemberI’ve confirmed that this is fixed in smart-webcomponents-angular v10.0.41. Thanks! 
- 
		AuthorPosts
- You must be logged in to reply to this topic.