Wrapping of Text

Hi  

Can I ask how can we compute the exact height of Merge field in syncfusion:SfDataGrid, because query row height method is not working. Please see the sample screent shot. I'm using the tool in WPF.


Sometimes is not wrapping


Thanks


3 Replies

DY Deivaselvan Y Syncfusion Team August 17, 2018 05:54 AM UTC

Hi Ariel,

You can compute the exact height of the merge field by implementing QureyRowHeight event with the help of AutoRowHeight functionality. Can you please share more details for your code snippet or sample on how you have customized in your application for cell merging and auto row height implementation, thereby we could analyze and update you with the appropriate details at the earliest.

Also please share the replication procedure for the user interaction to reproduce the reported issue.

Regards,
Deivaselvan 



AR Ariel August 17, 2018 06:06 AM UTC

Hi

Here's the sample code in getting the height of the row

  if (this.SupplementGrid.GridColumnSizer.GetAutoRowHeight(e.RowIndex, gridRowResizingOptions, out autoHeight))
                {
                    if (autoHeight > 24)
                    {
                        e.Height = autoHeight;
                        e.Handled = true;
                    }
                    else
                    {
                        e.Height = 30;
                        e.Handled = true;
                    }
                }

Here's the another sample of screen shot



Thanks


DY Deivaselvan Y Syncfusion Team August 17, 2018 12:27 PM UTC

Hi Ariel,

Thank you for the code example. A support incident to track the status of this defect has been created under your account. 

Please log on to our support website to check for further updates.

http://www.syncfusion.com/Account/Logon?ReturnUrl=%2fsupport%2fdirecttrac/

Regards,
Deivaselvan 


Loader.
Up arrow icon