Skip to content

Commit e7bb52f

Browse files
Merge dimodi-patch-1-inheritance-3134 into production (#3135)
* kb(Common): Update inheritance KB * Update common-extend-inherit-wrap-reuse-telerik-blazor-components.md --------- Co-authored-by: Dimo Dimov <[email protected]>
1 parent cef998c commit e7bb52f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

knowledge-base/common-extend-inherit-wrap-reuse-telerik-blazor-components.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: how-to
55
page_title: How to Extend, Inherit, or Wrap Telerik Components for Blazor
66
slug: common-kb-component-inheritance
77
tags: telerik, blazor, inheritance
8-
ticketid: 1628856, 1615737, 1604776, 1607228, 1618168, 1690926
8+
ticketid: 1628856, 1615737, 1604776, 1607228, 1618168, 1690926, 1694691
99
res_type: kb
1010
---
1111

@@ -266,6 +266,17 @@ namespace YourAppName.BaseComponents
266266
}
267267
````
268268

269+
## Notes
270+
271+
If `ReusableComboBox.razor` has a separate `.razor.cs` file, then the [partial class must be defined as generic](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/generic-type-support):
272+
273+
````C#.skip-repl
274+
public partial class ReusableComboBox<TItem, TValue> : ComponentBase
275+
{
276+
277+
}
278+
````
279+
269280
## See Also
270281

271282
* [Using Base Classes with Razor Components](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/?view=aspnetcore-9.0#specify-a-base-class)

0 commit comments

Comments
 (0)