Hello all,
i found the problem.
The expected value for the ParentIdMapping should be NULL if not have any parents.
I was using a default value of "-1" for every object without parent.. in this way they were not showed inside the tree grid.
now i changed the default value to null and now everythign work.
thank you very much!
Maurizio
Hi Maurizio,
As you mentioned, the ParentIdMapping value of the root node (i.e., the parent record) must be null. Because, according to tree grid architecture the ParentIdMapping null value records were considered as the root node.
Please let us know if you require any additional assistance. We will be happy to assist you.
Regards,
Manivannan Padmanaban
Hello, I know this issue is old but I am seeing the same error with a TreeGrid running sf 20.4.
I double checked all of my data, and all records have ParentId == NULL for parent rows, and all child records have a ParentId that is an existing value/existing record.
If I remove "EnableCollapseAll="true" as a TreeGrid parameter, then the search works as expected, but I would much prefer my project rec
When I search a project that I know has child projects, I get the following error:
023-04-25T19:36:37.402Z] Error: System.Collections.Generic.KeyNotFoundException: The specified key 'hasChildRecords' does not exist in the ExpandoObject.
at System.Dynamic.ExpandoObject.System.Collections.Generic.IDictionary<System.String,System.Object>.get_Item(String key)
at Syncfusion.Blazor.TreeGrid.Internal.ExpandCollapse`1.GetCurrentViewData()
at Syncfusion.Blazor.TreeGrid.Internal.GridRenderer`1.DataBoundHandler()
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Syncfusion.Blazor.Grids.SfGrid`1.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Hi Andy Terbovich,
We checked your query by preparing a sample, but we were unable to replicate the issue at our end.
Please refer to the attached sample,
Still if you are facing issue, please provide the following information.
The requested information will be helpful to proceed further.
Kindly get back to us for further assistance.
Regards,
Pon selva