Error on frosen columns and autofill edit. V18.3.35

Hi - I get an "Object reference not set to an instance of an object" error, from Syncfusion.Blazor.dll, when I in a Grid try to edit a column and have "FrozenColumns" in same grid. It is to the right of the "frosenline" that this occurs. 

   <SfGrid @ref="Grid" DataSource="@storeDataList" ShowColumnChooser="true" Toolbar="Toolbaritems"
                                        AllowResizing="true" AllowPaging="true" AllowFiltering="@storeGridEnable" AllowExcelExport="true"
                                        Height="@gridHeight" EnableAutoFill="true" AllowSelection="true" FrozenColumns="2">

 <GridSelectionSettings CellSelectionMode="CellSelectionMode.Flow" Mode="Syncfusion.Blazor.Grids.SelectionMode.Cell"
                                                           Type="Syncfusion.Blazor.Grids.SelectionType.Multiple"></GridSelectionSettings>

                                    <GridEditSettings AllowEditing="true" Mode="Syncfusion.Blazor.Grids.EditMode.Batch" ShowConfirmDialog="true"></GridEditSettings>
                                    <GridEvents OnToolbarClick="@((args) => ToolbarClickHandler(args, "Grid"))"
                                                OnBatchSave="@((args) => BatchSaveHandler(args, "Grid"))"
                                                CellSelected="@((args) => CellSelectHandler(args, "Grid"))"
                                                OnActionBegin="@((args)=>ActionBeginHandler(args,"Grid"))"
                                                OnLoad="@((args)=>LoadHandler(args,"Grid"))"
                                                TValue="storeDataList"></GridEvents>

                                    <GridPageSettings PageCount="@pageCount" PageSize="@pageSize" CurrentPage="@currentPage" PageSizes="@pageSizes" />

                                    <GridColumns>
                                        <GridColumn Field=@nameof(StoreData.StoreKey) HeaderText="StoreKey" IsPrimaryKey="true"
                                                    TextAlign="TextAlign.Left" Width="@StoreKeyWidth"  Visible="false"  ShowInColumnChooser="false" />

                                        <GridColumn Field=@nameof(StoreData.Store) HeaderText="Store" TextAlign="TextAlign.Left" Width="@DefaultWidth">
                                            <HeaderTemplate>
                                                Store
                                                <span class="e-search-icon e-icons" @onclick="ToggleToDoGridSearchBar"></span>
                                                <span class="@searchorderIcon" @onclick="@(() => ChangeSortOrder("Grid", "Store"))"></span>

                                            </HeaderTemplate>
                                            <EditTemplate>
                                                <SfAutoComplete @ref="ACStore" ID="Store" @bind-Value="@((context as StoreData).Store)"
                                                                DataSource="@storeDataList.GroupBy(o => new { o.Store }).Select(o => o.FirstOrDefault()).ToList()">
                                                    <AutoCompleteFieldSettings Value="Store" tite></AutoCompleteFieldSettings>
                                                    <AutoCompleteEvents TItem="StoreData" Created="@(() => OnCreate("Store"))" TValue="string"></AutoCompleteEvents>
                                                </SfAutoComplete>
                                            </EditTemplate>
                                        </GridColumn>
and so on. I have 32 columns. 


exception:
System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=Syncfusion.Blazor
  StackTrace:
   at Syncfusion.Blazor.Grids.Internal.Selection`1.<AutofillBorder>d__59.MoveNext()
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

  This exception was originally thrown at this call stack:
    Syncfusion.Blazor.Grids.Internal.Selection<T>.AutofillBorder(double?, double?, object)
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


13 Replies

VN Vignesh Natarajan Syncfusion Team October 5, 2020 01:40 PM UTC

Hi Soren,  
 
Thanks for contacting Syncfusion support.  
 
Query: “when I in a Grid try to edit a column and have "FrozenColumns" in same grid. It is to the right of the "frosenline" that this occurs 
  
We have validated the reported issue and we are able to reproduce the reported issue at our end when using AutoFill feature along with FrozenColumns. We have considered it as a bug and logged the defect report for the same “Exception occur when trying to use AutoFill feature with FrozenColumns”. Thank you for taking the time to report this issue and helping us improve our product. Fix for the issue will be included in our weekly patch release which is expected to be rolled out by end of October, 2020.  
 
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.      
  
 
Till then we appreciate your patience.   
 
Regards, 
Vignesh Natarajan   
               



SM Soren M October 6, 2020 09:35 AM UTC

Can you make the att. example work? 
It seems that you have only tested with textboxes. Numbers, BooleadEdits and others dont work. 



Attachment: Syncfusion18335ErrorsSample_7c7e520d.zip


VN Vignesh Natarajan Syncfusion Team October 7, 2020 10:56 AM UTC

Hi Soren,  

Thanks for sharing the sample.  

Query: “It seems that you have only tested with textboxes. Numbers, BooleadEdits and others dont work 
 
In the provided sample, we have validated the reported issue by removing the EnableAutoFill property (AutoFill is not working with FrozenColumns) from Grid. We are able to reproduce the reported issue while saving the changes in Grid (i.e.) Exception is thrown while trying to save the changes. Issue occur due to RegexPattern Validation rules defined for Weight column (numeric). 

We have confirmed it as a bug and logged the defect for the same “Exception occur when defining the RegexPattern Validation for numeric columns”. Fix for the issue will be included in our weekly patch expected to be rolled out on or before  14th October 2020. 

You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.       
   
  
Till then we appreciate your patience.     

Regards, 
Vignesh Natarajan  



SM Soren M October 8, 2020 12:45 PM UTC

Hi Vignesh, can I have you to remove the "FrozenColumns" and the "regex" code, run the project, and try to click the boolean column?


VN Vignesh Natarajan Syncfusion Team October 9, 2020 04:16 AM UTC

Hi Soren,  

Query: “can I have you to remove the "FrozenColumns" and the "regex" code, run the project, and try to click the boolean column? 
 
Yes to edit the Boolean column, kindly remove the FrozenColumns property and RegexPattern ValidationRules from the attached project. And also kindly upgrade your project to our latest version (18.3.0.38v) Nuget package (Syncfusion.Blazor) to resolve the exception thrown while clicking the Boolean column.  

For your convenience we have attached the modified project below  


We will get back to you once the reported issue is fixed and included in weekly patch releases. Till then we appreciate your patience.       
 
Regards, 
Vignesh Natarajan  



SM Soren M October 15, 2020 06:51 AM UTC

I have downgrated to version 18.3.35, from 18.3.38, and still have "Object reference not set to an instance of an object" on the treegrid. 
Can you comfirm this error?



VN Vignesh Natarajan Syncfusion Team October 16, 2020 06:58 AM UTC

Hi Soren,  
 
Query: “I have downgrated to version 18.3.35, from 18.3.38, and still have "Object reference not set to an instance of an object" on the treegrid.  Can you comfirm this error? 
 
Yes. We are able to reproduce the reported issue at our end using 18.3.0.35 version while trying to edit a Boolean value In Grid component. We have resolved the issue internally and included the fix in our 18.3.0.38 release. But you have mentioned that you are facing issue in TreeGrid. So kindly confirm whether you are facing the reported issue in Grid component or TreeGrid component.  
 
Regards 
Vignesh Natarajan 



SM Soren M October 16, 2020 07:57 AM UTC

Hi Vignesh, I have tried versions 18.3.35, 18.3.38, 18.3.40 and 18.3.41. It seems all of them have issues, x.x.35 and x.x.38 with TreeGrid, and boolean cells, x.x.40 and x.x.41 works local in debug-mode, but deployed to an Azure Appservice it gives an "Unhandled exception in circuit 'PxFINPMt20kdsgo_RjHnx-6dQF4xkisDlzirlotE1Q4'.System.NullReferenceException: 
Object reference not set to an instance of an object.at Syncfusion.Blazor.Internal.ResourceManager.IsIE()at Syncfusion.Blazor.Internal.ResourceManager.BuildRenderTree(RenderTreeBuilder builder)at M
icrosoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder)at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder,".

 


VN Vignesh Natarajan Syncfusion Team October 19, 2020 09:15 AM UTC

Hi Soren,  
 
Query: “I have tried versions 18.3.35, 18.3.38, 18.3.40 and 18.3.41. It seems all of them have issues, x.x.35 and x.x.38 with TreeGrid, and boolean cells, x.x.40 and x.x.41 works local in debug-mode, 
 
We have analyzed the reported issue by preparing a sample using TreeGrid component and we are unable to reproduce the reported issue at our end. For your convenience, we have created the Boolean edit sample with AutoFill feature. Refer to the below link,  
 
 
After referred the sample still facing an issue, please get back to us with the below details.  
 
  1. Share the complete Tree Grid rendering code.
  2. Share the video demonstration of the issue.
 
Provided information, will help us to resolve the reported issue as early as possible.  
 
Regards, 
Vignesh Natarajan 



SM Soren M October 19, 2020 10:20 AM UTC

This is what I get when deploying this refecenceproject.. 



FS Farveen Sulthana Thameeztheen Basha Syncfusion Team October 20, 2020 03:19 PM UTC

Hi Soren, 

We have deployed the sample attached in previous update but we are unable to reproduce any problem(attached Exception) at our end. Refer to the hosted link:- 
 
We need some more additional details to find the cause of the issue. Share us the following details requested in the previous update. 
 
  1. Complete TreeGrid code example.
  2. Replication procedure to reproduce the issue(with Video Demo).
  3. Have you faced the issue on rendering TreeGrid or else performing any action.
 
Based on the above details, we will assist you further. 
 
Regards, 
Farveen sulthana T 



SM Soren M October 21, 2020 02:11 PM UTC

Hi - the deploy issue it seems to be a 18.3.41 issue, 18.3.40 does work. Version 18.3.42 throws a exception for the spinner component and this I have not yet invistigated, but I will wait on the fix for frozen columns.
 



RS Renjith Singh Rajendran Syncfusion Team October 23, 2020 03:52 AM UTC

Hi Soren, 

Query1:- the deploy issue it seems to be a 18.3.41 issue, 18.3.40 does work  

Already shared hosted link belongs to version 18.3.41. (https://blazor.syncfusion.com/support/f158344). So please share us the requested details in previous update to proceed further.  
 
Query 2 : Version 18.3.42 throws a exception for the spinner component 
We are clear with the issue you are facing when using the SfSpinner. Can you please share us few more details regarding the reported query ?  
  
  1. Can you please share us the SfSpinner rendering code blocks used ?
  2. Can you please share us the screenshot of the error log you are facing ?
  3. If possible can you please share us the video demo of the issue reproducing scenario?
  
The above details will be helpful for us to further validate on the reported issue.  
  
Regards,  
Renjith R 



Loader.
Up arrow icon