RowHeight

Hello Syncfusion-Team,

I tried to set the RowHeight according to documentation, but got errors. It took me some time to find out what the root cause is.

Using "RowHeight" together with "EnableVirtualization="true"" brings up this error:
    
blazor.server.js:19 [2021-04-26T04:18:02.130Z] Error: System.FormatException: Input string was not in a correct format.
   at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
   at System.Number.ParseInt32(ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)
   at System.Convert.ToInt32(String value)
   at Syncfusion.Blazor.Grids.Internal.VirtualScroll`1.RemovePx(String WidthOrHeight)
   at Syncfusion.Blazor.Grids.Internal.VirtualScroll`1.EnsurePageSize()
   at Syncfusion.Blazor.Grids.Internal.VirtualScroll`1.VirtualLoadListener(Object args)
   at Syncfusion.Blazor.Grids.Internal.EventAggregator.<>c__DisplayClass2_0.<Notify>b__0(Action`1 handler)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at Syncfusion.Blazor.Grids.Internal.EventAggregator.Notify(String name, Object args)
   at Syncfusion.Blazor.Grids.Internal.Preloader`1.OnParametersSetAsync()
   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)

Please have a look at the issue.

Best regards
Michael

5 Replies 1 reply marked as answer

JP Jeevakanth Palaniappan Syncfusion Team April 27, 2021 07:29 AM UTC

Hi Michael, 

Greetings from Syncfusion support. 

We have validated your query by preparing a sample based on your scenario but unfortunately we are unable to reproduce the reported problem from our end. Please find the validated sample for your reference. 


If you are still facing the problem then kindly share us the below details, 

  1. Share us the Syncfusion NuGet version.
  2. Share us the video demo showing the reported problem.
  3. Are you facing the issue in initial rendering or during any grid actions?.
  4. Kindly share us the issue reproducing sample or reproduce the issue in the above provided sample.

The above requested details will be helpful for us to validate the issue and provide you with a better solution as early as possible. 

Regards, 
Jeevakanth SP. 


Marked as answer

MP Michael Pusch April 27, 2021 07:31 PM UTC

Hi Jeevakanth,

your example is working indeed. But it fails as soon as Height="600" is removed from:
<SfGrid DataSource="@GridData" Height="600" EnableVirtualization="true" RowHeight="40" AllowGrouping="true">

Best regards
Michael


JP Jeevakanth Palaniappan Syncfusion Team April 28, 2021 01:41 PM UTC

Hi Michael, 

We have checked your query and we would like to inform you that when you are using virtualization then you have to set the grid’s height using the Height property. Please refer the below documentation for your reference. 


Regards, 
Jeevakanth SP. 



MP Michael Pusch April 28, 2021 05:41 PM UTC

Hi Jeevakanth,

ok, I will do that. Thank you for your help!

Maybe you check the code and add a meaningful exception message for the next developer stumbling over this issue.

Best regards
Michael




JP Jeevakanth Palaniappan Syncfusion Team April 29, 2021 05:45 AM UTC

Hi Michael, 

Thanks for your suggestion. We will look into it. 

Please get back to us if you have any other queries. 

Regards, 
Jeevakanth SP. 


Loader.
Up arrow icon