Cannot use RadzenComponent.Element in inheritance #64

Open
opened 2026-01-29 17:31:00 +00:00 by claunia · 0 comments
Owner

Originally created by @bazarniy on GitHub (Mar 23, 2021).

Hi guys!
I'm trying to make my oun component inherited from RadzenComponent. Element property has "internal set". So using @ref="@Element" generates compile errors.

UPDATE

Is your feature request related to a problem? Please describe.
Cannot use "Element" property in RadzenComponent after inheritance

Describe the solution you'd like
Make protected or public setter there

Describe alternatives you've considered

Additional context
a5293d714b/Radzen.Blazor/RadzenComponent.cs (L14)

Originally created by @bazarniy on GitHub (Mar 23, 2021). Hi guys! I'm trying to make my oun component inherited from RadzenComponent. Element property has "internal set". So using @ref="@Element" generates compile errors. UPDATE **Is your feature request related to a problem? Please describe.** Cannot use "Element" property in RadzenComponent after inheritance **Describe the solution you'd like** Make protected or public setter there **Describe alternatives you've considered** **Additional context** https://github.com/radzenhq/radzen-blazor/blob/a5293d714b7cfdb934cd01982ff7d5b46962deef/Radzen.Blazor/RadzenComponent.cs#L14
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#64