You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blazor itself used to require explicit EditContext for input-components to work.
We implemented automatic creation of wrapping EditContext (cascading value) when we detected there is no EditContext used.
This worked pretty well!
It seems Blazor itself does not require EditContext for input-components any more.
And we found first scenario where the auto-created EditContext does bring some troubles:
TP2 project (ImportSettingsUpdateEmployeesGrid)
HxInputCheckbox used inside Telerik Grid
The column Template contains checkbox (always visible, disabled, used to present the true/false value)
When the grid switches to in-place editing mode (the column itself is set as non-editable), Telerik seems to add wrapping EditContext for that
Do we still need to generate the EditContext? Can we drop this feature as Blazor itself handles the scenario?
cc @jirikanda
The text was updated successfully, but these errors were encountered:
hakenr
changed the title
[HxInputBase] Re-evaluate auto creating EditContext
[HxInputBase] Re-evaluate automatic EditContext creating when no EditContext found
Dec 17, 2024
hakenr
changed the title
[HxInputBase] Re-evaluate automatic EditContext creating when no EditContext found
[HxInputBase] Re-evaluate the automatic creation of an EditContext when none is found
Dec 17, 2024
Blazor itself used to require explicit
EditContext
for input-components to work.We implemented automatic creation of wrapping
EditContext
(cascading value) when we detected there is noEditContext
used.This worked pretty well!
It seems Blazor itself does not require
EditContext
for input-components any more.And we found first scenario where the auto-created
EditContext
does bring some troubles:HxInputCheckbox
used inside Telerik GridTemplate
contains checkbox (always visible, disabled, used to present the true/false value)EditContext
for thatSystem.InvalidOperationException: Havit.Blazor.Components.Web.Bootstrap.HxCheckbox does not support changing the EditContext dynamically.
coming from https://github.com/dotnet/aspnetcore/blob/e0ee9e981e4c90e78a31b36e41aecd9144119c77/src/Components/Web/src/Forms/InputBase.cs#L256-L265Do we still need to generate the
EditContext
? Can we drop this feature as Blazor itself handles the scenario?cc @jirikanda
The text was updated successfully, but these errors were encountered: