Hoping you can help with this?
Running Blazor Server side and the Telerik controls.
When I call (any navigateTo)
uriHelper.NavigateTo($"/qutes/view/" + quoteId);
I see the URL change in the browser, but in the console get. Only throws errors on the Telerik Controls.
Debug
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Blazor.Components.Grid.TelerikGridRowBase`1.ExecuteCommand(String name)
at Microsoft.AspNetCore.Components.EventCallbackWorkItem.InvokeAsync[T](MulticastDelegate delegate, T arg)
at Microsoft.AspNetCore.Components.ComponentBase.Microsoft.AspNetCore.Components.IHandleEvent.HandleEventAsync(EventCallbackWorkItem callback, Object arg)
at Microsoft.AspNetCore.Components.Rendering.Renderer.DispatchEventAsync(Int32 eventHandlerId, UIEventArgs eventArgs)
Microsoft.AspNetCore.Components.Server.ComponentHub: Warning: Unhandled Server-Side exception
Web Server
VisualBlazor> warn: Microsoft.AspNetCore.Components.Browser.Rendering.RemoteRenderer[100]
VisualBlazor> Unhandled exception rendering component: Object reference not set to an instance of an object.
VisualBlazor> System.NullReferenceException: Object reference not set to an instance of an object.
VisualBlazor> at Telerik.Blazor.Components.DropDownList.TelerikDropDownListBase`2.OnParametersSet()
VisualBlazor> at Microsoft.AspNetCore.Components.ComponentBase.CallOnParametersSetAsync()
VisualBlazor> at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
VisualBlazor> warn: Microsoft.AspNetCore.Components.Server.ComponentHub[0]
VisualBlazor> Unhandled Server-Side exception
Hey all,
I've been playing with your Blazor components and I need some help with your new TreeView. My objective is to choose an item in the treeview (i.e. double click the item or drag and drop) and then populate a grid with the chosen item. This is probably easy but I'm stuck. You have an OnExpand event on the tree but nothing else. Does anyone have an example or idea on how I could do this please?
Thanks,
Jimmy
I am running 1.3.0 and .Net Core preview 6
This is a server side Blazor application.
Locally the project runs fine, but when I deploy to IIS I get the following error when I hit the page:
An error occurred while starting the application.
DirectoryNotFoundException: C:\Users\longk\.nuget\packages\telerik.ui.for.blazor\1.3.0\staticwebassets\
Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(string root, ExclusionFilters filters)
DirectoryNotFoundException: C:\Users\longk\.nuget\packages\telerik.ui.for.blazor\1.3.0\staticwebassets\
Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(string root, ExclusionFilters filters)
Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(string root)
Microsoft.AspNetCore.StaticWebAssetsFileProvider..ctor(string pathPrefix, string contentRoot)
Microsoft.AspNetCore.StaticWebAssetsLoader+<>c.<UseStaticWebAssetsCore>b__2_0(ContentRootMapping cr)
System.Linq.Enumerable+SelectEnumerableIterator<TSource, TResult>.MoveNext()
System.Linq.Enumerable.OfTypeIterator<TResult>(IEnumerable source)+MoveNext()
System.Collections.Generic.List<T>..ctor(IEnumerable<T> collection)
System.Linq.Enumerable.ToList<TSource>(IEnumerable<TSource> source)
Microsoft.AspNetCore.StaticWebAssetsLoader.UseStaticWebAssetsCore(IWebHostEnvironment environment, Stream manifest)
Microsoft.AspNetCore.StaticWebAssetsLoader.UseStaticWebAssets(IWebHostEnvironment environment)
Microsoft.AspNetCore.WebHost+<>c.<ConfigureWebDefaults>b__9_0(WebHostBuilderContext ctx, IConfigurationBuilder cb)
Microsoft.AspNetCore.Hosting.Internal.GenericWebHostBuilder+<>c__DisplayClass8_0.<ConfigureAppConfiguration>b__0(HostBuilderContext context, IConfigurationBuilder builder)
Microsoft.Extensions.Hosting.HostBuilder.BuildAppConfiguration()
Microsoft.Extensions.Hosting.HostBuilder.Build()
ScheduledFeatureEditor.Program.Main(string[] args) in Program.cs
NOTE: The directory that is saying is not found is my local directory on the build machine, not the server that I deployed to. I'm not sure where that is coming from.
I am not using static assets (or at least I don't think I am). Here is my script reference from _Host.cshtml:
<script src="https://kendo.cdn.telerik.com/blazor/1.3.0/telerik-blazor.min.js" defer></script>
Here are some snippets from Startup that show I am including the telerik blazor stuff:
public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages();
services.AddServerSideBlazor();
services.AddTelerikBlazor();
And also I am including static file handling in startup:
app.UseStaticFiles();
If I change the code to use the static asset version like this:
<script src="_content/telerikuiforblazor/js/telerik-blazor.js" defer></script>
and then redeploy I get the same error.
Any ideas?
Thanks,
Kenny Long
I know Blazor is suppose to support IE 11 through some behind the scenes magic, what is the plan for Telerik for this?
We don't really care too much in our department as we are recommending all internal users to stop using IE and if the app doesn't work then the app doesn't work, use a modern browser.
However I am curious on if the plan will be there to support it as I do some things outside of our company that might be trickier to convince people to just not use IE on?
when can we expect to have a TreeView component like this https://www.syncfusion.com/blazor-components/blazor-treeview
Looks like syncfusion already have treeview and much more components for blazor.
Is there anything we need to make sure we are including when we upgrade to 1.3?
I go in the nuget and upgrade to 1.3 and try and do a button click which should open a window with a number of Telerik controls and I get an object reference error on the button click, window doesn't open.
Set it back to 1.2 error goes away and everything works just fine.
Hi,
Brilliant work on the Blazor components to date guys!
Any sign of a Menu Component yet though?
Thanks,
How does the new 100% grid height work? Does it take the height of it's container?
I removed the height styling from some of my pages, but the grid just keeps expanding and you have to use the browser scroll bar to access it. This is better than the fixed height, just trying to understand the new support.
Thanks,
Kenny
preview 6 breaks things pretty badly with Telerik components. So I uninstalled it and reinstalled preview 5, but now I am getting errors:
SeverityCodeDescriptionProjectFileLineSuppression State
ErrorThe type of component 'TelerikDropDownList' cannot be inferred based on the values provided. Consider specifying the type arguments directly using the following attributes: 'TItem', 'TValue'.ScheduledFeatureEditorC:\Code\ScheduledFeatureEditor\ScheduledFeatureEditor\Pages\ScheduledFeatures.razor145
Which is referring to this line of code:
<TelerikDropDownList Data="@ApplicationFeatureNames" TextField="Text" ValueField="Value" bind-Value="@applicationFeatureId">
So everywhere I have a line similar to this, I get the same error.
Also getting this error :
SeverityCodeDescriptionProjectFileLineSuppression State
ErrorThe type of component 'TelerikNumericTextBox' cannot be inferred based on the values provided. Consider specifying the type arguments directly using the following attributes: 'T'.ScheduledFeatureEditorC:\Code\ScheduledFeatureEditor\ScheduledFeatureEditor\Pages\ScheduledFeatures.razor191
This is on lines like this:
<TelerikNumericTextBox bind-Value=@ScheduledFeatureToEdit.CustomInterval></TelerikNumericTextBox>
Any ideas on how to get back to my working version of the project with preview 5?
Thanks,
Kenny
Hi
Will Ui for Blazor be part of DevCraft Complete?
Best
Giuseppe