We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Size of table when resizing is set wrong

Thread ID:

Created:

Updated:

Platform:

Replies:

141752 Jan 2,2019 06:26 PM UTC Jan 4,2019 12:08 PM UTC JavaScript - EJ 2 3
loading
Tags: Grid
Davi Daniel Siepmann
Asked On January 2, 2019 06:26 PM UTC

Syncfusion sets the width of the table inside a Grid component when we resize the columns of the table, but this width is not as accurate as the line that divides each row is broken for the last element.
See attached file.

Thank you !

Attachment: Capture_e1a745e1.zip

Thavasianand Sankaranarayanan [Syncfusion]
Replied On January 3, 2019 07:29 AM UTC

Hi Davi, 

Greetings from Syncfusion. 

In our Essential JavaScript2 we are using the fixed column layout structure for Grid. While using fixed column layout, column does not share their width to other columns. So that it renders white space when total columns width becomes lesser than the Grid width, this is the default behavior of EJ2 Grid.  

Regards, 
Thavasianand S. 


Davi Daniel Siepmann
Replied On January 3, 2019 01:07 PM UTC

Good morning Thavasianand S., thank you for the reply.

We just would like to know if Syncfusion is planning to fix this (at least by the point of view of the user is an issue) or if we should fix the EJ2 Grid ourselves?

Thank you, regards.

Thavasianand Sankaranarayanan [Syncfusion]
Replied On January 4, 2019 12:08 PM UTC

Hi Davi, 

As per your given detail we suspect that you want to overcome your mentioned problem. 

So, we suggest you to follow the below code example. 


 
resizeStop: function(args){ 
      (this.element.getElementsByClassName('e-headercontent')[0].children[0] as any).style.width = '100%'; (this.element.getElementsByClassName('e-content')[0].children[0] as any).style.width = '100%'; 
    } 
 


  
Refer the below sample for further assistance, 

 
Refer the help documentation. 
 

Regards, 
Thavasianand S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;