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
Looking at the demo codes (razor pages) I see some pages like Calendar.razor uses both Telerik.Blazor namespace and the fully defined namespace for the Calendar @using Telerik.Blazor @using Telerik.Blazor.Components.Calendar
And in most other samples I only see the fully defined namespace for that component and not the Telerik.Blazor.
This has got me confused, as my thinking was Telerik.Blazor is the core component that ALL components use & share and then each component, i.e. Calendar has extra features and that's why we need to include it as using statement. But I find some inconsistency across some of the pages I was looking at.
What namespace hierarchy are being used with Telerik framework?
Perhaps the answer should also be in the docs to make it easier what using statement we should be using.
If I have missed it, please let me know.
Thanks!
..Ben
The text was updated successfully, but these errors were encountered:
The Telerik.Blazor namespace is added because we currently hold some of the enums in it. For instance the IconName static class.
This was with the intention of having them available everywhere without the need of including an extra namespace - for instance inside a grid page, you were able to automatically use IconName.
However after the namespace changes implemented in preview 4, this was turned on its head, and we're now forced to be extremely verbose, until they introduce the ability to define namespaces.
In other words - this will be changed and fixed, and I'll update this issue when we do.
Looking at the demo codes (razor pages) I see some pages like Calendar.razor uses both Telerik.Blazor namespace and the fully defined namespace for the Calendar
@using Telerik.Blazor
@using Telerik.Blazor.Components.Calendar
And in most other samples I only see the fully defined namespace for that component and not the Telerik.Blazor.
This has got me confused, as my thinking was Telerik.Blazor is the core component that ALL components use & share and then each component, i.e. Calendar has extra features and that's why we need to include it as using statement. But I find some inconsistency across some of the pages I was looking at.
What namespace hierarchy are being used with Telerik framework?
Perhaps the answer should also be in the docs to make it easier what using statement we should be using.
If I have missed it, please let me know.
Thanks!
..Ben
The text was updated successfully, but these errors were encountered: