Selection in grid + exceptions
Hi
Attachment: BlazorApp1_be427c3a.zip
I have two issues with the Grid component. Both can be reproduced with the attached sample project
First issue:
(a) run the project, select a row in the grid by just clicking on it: works fine
(b) refresh the page with F5 and try to select a row in the same way again: does not work (row is not selected). If I press CTRL + select a row, it works. If I scroll further down, it also works.
(in my real project, refreshing the page is not even required, it doesn't work the first time either)
What I found out so far:
(1) it does not happen if EnableVirtualization="false"
(2) it does not happen if I remove this line: <GridEvents Created="OnGridCreated" TValue="MyGridRow" /> Which is strange because in the sample project, the OnGridCreated method doesn't do anything
Second issue: when I set Height="2000" instead of 500, I get a couple of errors/exception in the console:
(1) Immediately when loading:
TypeError: Cannot read property 'cells' of undefined
at e.generate (https://localhost:44361/_content/Syncfusion.Blazor/scripts/grids-d2f3cb.min.js:1:137345)
at e.refMatrix (https://localhost:44361/_content/Syncfusion.Blazor/scripts/grids-d2f3cb.min.js:1:130100)
at e.blazorCallback (https://localhost:44361/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:44065)
at e.notify (https://localhost:44361/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:43835)
at i.r.notify (https://localhost:44361/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:98468)
at https://localhost:44361/_content/Syncfusion.Blazor/scripts/grids-d2f3cb.min.js:1:39428
at i.e.refreshContentRows (https://localhost:44361/_content/Syncfusion.Blazor/scripts/grids-d2f3cb.min.js:1:44278)
at e.<anonymous> (https://localhost:44361/_content/Syncfusion.Blazor/scripts/grids-d2f3cb.min.js:1:107291)
at e.notify (https://localhost:44361/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:43735)
at i.e.trigger (https://localhost:44361/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:76595)
(2) When selecting a row:
Error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Syncfusion.Blazor.Grids.Internal.GridJSInteropAdaptor`1.<>c__DisplayClass8_0.<MaintainSelection>b__0(Int32 y)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at Syncfusion.Blazor.Grids.Internal.GridJSInteropAdaptor`1.MaintainSelection(Boolean isSelected, String type, List`1 index)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.InvokeSynchronously(JSRuntime jsRuntime, DotNetInvocationInfo& callInfo, IDotNetObjectReference objectReference, String argsJson)
at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.BeginInvokeDotNet(JSRuntime jsRuntime, DotNetInvocationInfo invocationInfo, String argsJson)
at Object.endInvokeDotNetFromJS (https://localhost:44361/_framework/blazor.server.js:8:31660)
at e.<anonymous> (https://localhost:44361/_framework/blazor.server.js:8:103446)
at https://localhost:44361/_framework/blazor.server.js:1:19202
at Array.forEach (<anonymous>)
at e.invokeClientMethod (https://localhost:44361/_framework/blazor.server.js:1:19173)
at e.processIncomingData (https://localhost:44361/_framework/blazor.server.js:1:17165)
at e.connection.onreceive (https://localhost:44361/_framework/blazor.server.js:1:10276)
at WebSocket.i.onmessage (https://localhost:44361/_framework/blazor.server.js:1:38091)
Regards
Sven
Attachment: BlazorApp1_be427c3a.zip
SIGN IN To post a reply.
1 Reply
1 reply marked as answer
RN
Rahul Narayanasamy
Syncfusion Team
June 5, 2020 02:30 PM UTC
Hi Sven,
Greetings from Syncfusion.
We have validated your query and able to reproduce the reported problem. We have confirmed this as a bug and logged defect report for the same “Not able to select the record in Visualized Grid after certain actions”. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our upcoming Volume 2 release which is expected to be rolled out by the end of June, 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.
Please get back to us if you need further assistance.
Regards,
Rahul
Marked as answer
SIGN IN To post a reply.