Telerik Forums
UI for Blazor Forum
9 answers
255 views
Yesterday I download in database real business data for performance testing. And I found that TreeView works (moving between nodes) very slowly. It's absolutely expectable becase TreeView has more than 10 thousands nodes. OK. I switched TreeView in Lazy Loading Mode. All works fine, but I have some exceptions in console. Exception occured when I click for expand node. I see than OnExpand event sub works normally, but after my OnExpand sub I see exception messages from Telerik TreeView. Please, see my screenshot.
Andriy
Top achievements
Rank 1
 answered on 29 Jul 2019
1 answer
737 views

I am trying version 1.4.0 and if I use a telerik control inside a Window it fails and cant use any telerik control inside, if i use standard html controls it works. See attached code and screenshot. Any idea?

 

@using Telerik.Blazor.Components.Window
@using Telerik.Blazor.Components.DropDownList

<TelerikWindow Width="500px" Height="@Height" Centered="true" Visible=@isVisible Modal="true">
    <TelerikWindowTitle>
        @ModalTitle
    </TelerikWindowTitle>
    <TelerikWindowContent>
        <EditForm Model="@DTOModel" OnValidSubmit="@OnSummit">
            <input type="hidden" value="@DTOModel.Id" />
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">Name</label>
                <div class="col-sm-10">
                    <Input type="text" @bind-Value="@DTOModel.Name" class="form-control" />
                    <ValidationMessage For="@(() => DTOModel.Name)" />
                </div>
            </div>

            <div class="form-group row">
                <label class="col-sm-2 col-form-label">Subscription</label>
                <div class="col-sm-10">
                    <TelerikDropDownList Data="@SuscriptionTypes" @bind-Value=@selectedValue ValueField="Value" TextField="Text"></TelerikDropDownList>
                        
                </div>
            </div>
            @if (DTOModel.Id != Guid.Empty)
            {
                <div class="form-group row">
                    <label class="col-sm-2 col-form-label">Disabled</label>
                    <div class="col-sm-10">
                        <Input type="checkbox" @bind-Value="@DTOModel.IsDisabled" checked="@DTOModel.IsDisabled" />
                    </div>
                </div>
            }

            @if (!string.IsNullOrEmpty(ShowError))
            {
                <div class="alert alert-danger">
                    @ShowError
                </div>
            }
            <DataAnnotationsValidator />
            <div class="form-group row pt-2">
                <div class="col-sm-12 text-center">
                    @if (_isLoading)
                    {
                        <LoadingButton></LoadingButton>
                    }
                    else
                    {
                        <button type="submit" class="btn btn-primary btn-sm" onclick-prevent-default><i class="fas fa-save"></i> Save</button>
                        <button type="button" style="margin-left:20px;" class="btn btn-secondary btn-sm" onclick="@OnCancel">
                            <i class="fas fa-times"></i> Cancel
                        </button>
                    }
                </div>
            </div>
        </EditForm>
    </TelerikWindowContent>
</TelerikWindow>

 

 

Marin Bratanov
Telerik team
 answered on 29 Jul 2019
4 answers
123 views
In console I see exception chain, but all works normally. Exception throws when I click on select button and calendar was drop down.
Marin Bratanov
Telerik team
 answered on 29 Jul 2019
1 answer
124 views
In new version I have this (see picture)
Marin Bratanov
Telerik team
 answered on 29 Jul 2019
4 answers
154 views

Hello,

 

Now that .net core 3 preview 7 is out, when can we expect Blazor UI to support it?

Marin Bratanov
Telerik team
 answered on 26 Jul 2019
5 answers
589 views

Hi, 

I just couldn't make the chart to show even with your demo codes here  -> https://docs.telerik.com/blazor-ui/components/chart/types/column

Could this be a bug?

I'm using the following:

.NET Core version 3.0.100-preview7-012821

VS 2019 Enterprise 16.2.0 Preview 3

Telerik.UI.for.Blazor version 1.3.0

 

 

Marin Bratanov
Telerik team
 answered on 26 Jul 2019
1 answer
213 views
Hello.
When I set width for TextBox I don't see any changes for TextBox. For example, TelerikDatePicker Width works OK.
Marin Bratanov
Telerik team
 answered on 24 Jul 2019
11 answers
803 views

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

Marin Bratanov
Telerik team
 answered on 23 Jul 2019
2 answers
854 views

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

Marin Bratanov
Telerik team
 answered on 18 Jul 2019
1 answer
317 views

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

 

Marin Bratanov
Telerik team
 answered on 17 Jul 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?