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. Image for the cookie policy date

GridControl Cell data word Ellipsis

Hello,

I'am working with Sycnfusion GridControl with version 11.104.0.21.
When changing font size in my controls  some of the data in the grid cell do word Ellipsis even the column width are so wide. 
It happens that the issue was encountered in just specific font and font size. 

I just send some screenshot for reference. The cell data is just 3 digit number.



Thanks for the help,
~Joel


7 Replies

AR Arulpriya Ramalingam Syncfusion Team November 11, 2019 11:56 AM UTC

Hi Joel, 
 
Thank you for using Syncfusion products. 
 
We have tried to reproduce the reported use case with Winforms/WPF GridControl for both 11.1.x.x and latest version. However, we could not meet the scenario at our end and suspect that it might be occurred due to some other grid settings with different fontstyle. So, please refer to the below sample and include the font settings that are added for the grid to reproduce the issue at our end. 
 
Sample link 
 
Please confirm your platform, if we misunderstood your platform. 
 
Arulpriya 



JO Joel November 13, 2019 07:13 AM UTC

Hello,

Thank you so much for the reply.

We tried clearing out all the styles. We only passed/set the value for the font namely the FontFamily and FontSize, apparently on some machine "Trebuchet MS" with FontSize: 10 and some machine with "Arial" Fontsize 10, the text is "truncated/cut" (that is with ellipsis ...) even if the cell/column size is enough to display the whole text. 

We are also confused by the sample code you gave to us. That was a WPF wherein our issue is in the Silverlight GridControl project, is that the same? Because our issue is in browser (IE11) to be exact.

Is there anyway we can access the actual "text area" so we can increase the width instead of just the cell width?

Thanks,



AR Arulpriya Ramalingam Syncfusion Team November 13, 2019 12:53 PM UTC

Hi Joel, 
 
Thank you for the confirmation. 
 
We could not meet the exact reported use case however, we suspect that the scenario might be occurred due to setting the TextWrapping and TextTrimming for the cells. This can be avoided be setting those properties to none and please make use of the below code. 
 
Code example 
 
//For avoid trimming 
sfGrid.Model.TableStyle.TextTrimming = TextTrimming.None; 
//For TextWrapping 
sfGrid.Model.TableStyle.TextWrapping = TextWrapping.NoWrap;
 
 
Note 
In order to change the width of the column, the CoumnWidths[index] collection can be used. 
 
Please get back to us, if you need any further assistance on this. 
 
Arulpriya 



JO Joel replied to Arulpriya Ramalingam November 14, 2019 08:26 AM UTC

Hi Joel, 
 
Thank you for the confirmation. 
 
We could not meet the exact reported use case however, we suspect that the scenario might be occurred due to setting the TextWrapping and TextTrimming for the cells. This can be avoided be setting those properties to none and please make use of the below code. 
 
Code example 
 
//For avoid trimming 
sfGrid.Model.TableStyle.TextTrimming = TextTrimming.None; 
//For TextWrapping 
sfGrid.Model.TableStyle.TextWrapping = TextWrapping.NoWrap;
 
 
Note 
In order to change the width of the column, the CoumnWidths[index] collection can be used. 
 
Please get back to us, if you need any further assistance on this. 
 
Arulpriya 


Hi,

Yes we are using TextTrimming.WordEllipsis and TextWrapping.Wrap as we wanted the feature wherein if a certain cell's width is not enough to show the full "number/text", it will display ... at the end. But apparently our problem is there are 3 character number/text that are being "cut off" even though the cell's width is enough to show the full text.

It only happens on certain FontSizes which our customers are actually needing. Also if it is noteworthy to state, the problem persists on some machines but on different FontSizes. As I have asked before, is there a way to get the "text area" where the text is being drawn, isn't there a text area object besides the actual cell? Maybe a textblock or something? Because no matter how we size the width of the cell, it seems the text is being cut off, I am suspecting there's a textblock inside it that is not "resizing" the same size as the cell.

Regards,

Joel


AR Arulpriya Ramalingam Syncfusion Team November 15, 2019 06:38 AM UTC

Hi Joel, 
 
Thank you for the update. 
 
We tested the reported use case with IDE11, VisualStudio 2015 and syncfusion version 11.1.x.x by implementing the font style, TextWrapping and TextTrimming options for the grid cells. The TextWrapping and TextTrimming functions are working fine at our end and we request you to refer the provided and video to check whether the replication procedure and code parts are implemented properly as per the reported scenario. If not, please add the codes that are missing which causes the issue and revert us with replication procedure if any. That will be helpful for us to assist you further. 
 
 
Arulpriya 



JO Joel replied to Arulpriya Ramalingam November 28, 2019 09:05 AM UTC

Hi Joel, 
 
Thank you for the update. 
 
We tested the reported use case with IDE11, VisualStudio 2015 and syncfusion version 11.1.x.x by implementing the font style, TextWrapping and TextTrimming options for the grid cells. The TextWrapping and TextTrimming functions are working fine at our end and we request you to refer the provided and video to check whether the replication procedure and code parts are implemented properly as per the reported scenario. If not, please add the codes that are missing which causes the issue and revert us with replication procedure if any. That will be helpful for us to assist you further. 
 
 
Arulpriya 


Hi Arulpriya 

Sorry for the late update. I already replicated the issue using the file you've sent to me. Please see attached file.

Thank you so much.

Regards,
~Joel

Attachment: SilverLight_2b81cbd9.zip


AR Arulpriya Ramalingam Syncfusion Team November 29, 2019 05:29 PM UTC

Hi Joel, 
 
Thank you for the update. 
 
We have analyzed the provided sample at our end and the reported scenario occurred due to adding the ScrollViewer in the LayoutTransformer. Moreover. syncfusion GridControl for Silverlight controls marked as classic and we will not implement any bug fixes or features in it. So, we suggest that you to add the ScrollViewer in either Window directly of stackpanel. 
 
Please let us know, if you have any other queries. 
 
Regards, 
Arulpriya 


Loader.
Live Chat Icon For mobile
Up arrow icon