Hi,
How do I add css to Telerik blazor widget markup?
Specifically, I am interested in changing the back and fore color of the treeview.
Thanks … Ed
Good morning, we have acquired the Telerik package for Blazor and we have the following problem:
We have a project that uses Telerik + Inspinia, and by adding the script “<script src =" _ framework / blazor.server.js "> </script>”, inspinia stops working. Does not expand the side menu.
When removing the script, the side menu works but telerik does not:
By replacing the following in inspinia.js the side menu and telerik work:
But the submenu does not work, when you click it does not display the submenu:
Apparently Telerik Blazor is not compatible with Inspinia
Project attached.
Regards.
I have a date category x-axis which is currently auto fitting.
It is somewhat redundant however I was trying to add a title to the axis and I ran into issues.
Is that supported? I can easily add titles to a value axis.
Without the line "ChartCategoryAxisTitle" it works correctly however with no title.
Code:
<
ChartCategoryAxes
>
<
ChartCategoryAxis
BaseUnit
=
"ChartCategoryAxisBaseUnit.Fit"
Type
=
"ChartCategoryAxisType.Date"
MaxDateGroups
=
"10"
/>
<
ChartCategoryAxisTitle
Text
=
"Time"
/>
</
ChartCategoryAxes
>
Error:
blazor.server.js:15 [2019-10-10T18:39:17.853Z] Error: System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Blazor.Components.ChartCategoryAxisTitleBase.AddSelfToParent()
at Telerik.Generated.Blazor.Components.ChildComponent.OnInitialized()
at Telerik.Blazor.Components.ChartCategoryAxisTitleBase.OnInitialized()
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
When the TelerikButton component's fully qualified name isn't used I get an error. Examples of working and non-working code below:
This works:
@page "/teleriktest"
@using Telerik.Blazor.Components.TextBox
<TelerikTextBox Value="My text value"></TelerikTextBox>
<Telerik.Blazor.Components.Button.TelerikButton>My button</Telerik.Blazor.Components.Button.TelerikButton>
This does not work
@page "/teleriktest"
@using Telerik.Blazor.Components.TextBox
@using Telerik.Blazor.Components.Button
<TelerikTextBox Value="My text value"></TelerikTextBox>
<TelerikButton>My button</TelerikButton>
I get the error:
Unhandled exception rendering component: Object of type 'TestProject.Pages.TelerikButton' does not have a property matching the name 'ChildContent'.
As you can see, doing something similar with the TelerikTextBox works fine, so I'm thinking it might not be me.
When setting menu items text with a variable the application fails with error.
var x = "XXX";
MenuItems.Add(new MenuItem()
{
Text = x,
Path = "/test"
});
error:
blazor.server.js:15 [2019-10-10T12:54:11.068Z] Error: System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Blazor.Components.TelerikMenu`1.BuildRenderTree(RenderTreeBuilder __builder)
at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder)
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()
It appears that ValueChanged isn't fired when the control is initialized. This is case if Value is populated, or it falls back to the first item from the data source.
Is this intentional? It's a bit of a pain having to specifically call it in OnInitialized, I expected it to be called automatically.
I'm trying to see more than 1 level of hierarchy in my grid but i don't know how i would to such a thing with the current infrastructure.
any idea?
If the children property is not null then the expand children arrow will display.
It displays even if the children is an empty array.
This may be a feature but seems more like a bug to me.
<
TelerikMenu
Data
=
"@MenuItems"
Orientation
=
"MenuOrientation.Vertical"
UrlField
=
"@nameof(MenuItem.Url)"
ItemsField
=
"@nameof(MenuItem.Children)"
TextField
=
"@nameof(MenuItem.Text)"
ImageUrlField
=
"@nameof(MenuItem.Image)"
>
</
TelerikMenu
>
public
class
MenuItem
{
public
string
Text {
get
;
set
; } =
""
;
public
string
Url {
get
;
set
; } =
""
;
public
string
Image {
get
;
set
; } =
""
;
public
MenuItem[] Children {
get
;
set
; } // Arrow will show on all items if: = Array.Empty<MenuItem>();
}
Hi,
Is a PDf Viewer on the roadmap for the Blazor SDK?
If so will a thumbnail viewer be included?
Regards,
Graham
Hello, can you add support for the "title" attribute on the button component. It has already been requested for Kendo for Angular 2+. We would like to have this feature in Blazor as well. https://feedback.telerik.com/kendo-angular-ui/1360816-toolbar-button-title-attribute
Thanks,
Ryan