Telerik Forums
UI for Blazor Forum
3 answers
1.2K+ views
     Is there a way to make a TelerikIcon bigger?
Marin Bratanov
Telerik team
 answered on 26 Nov 2020
3 answers
550 views
can the lazy loading be implementing to load just components with are on the page?
Lachezar Georgiev
Telerik team
 answered on 25 Nov 2020
1 answer
2.9K+ views

     I have made my rows clickable by handling the OnRowClick event, but I want the cursor to change to a hand when the cursor is over a row so that the user knows it is clickable.

How can I accomplish this?

Lachezar Georgiev
Telerik team
 answered on 25 Nov 2020
4 answers
312 views
I am using Telerik UI for Blazor. I am planning to reduce the size of JavaScript bundle used for Telerik UI blazor components. So how to create the custom bundle for particular components. so that I can reduce the page load time.
Can anyone help me on this!!
Aartheeswaran
Top achievements
Rank 1
 answered on 25 Nov 2020
12 answers
2.9K+ views

After release the fist load cause the error (same for each component on the page), reload the page helps to get rid of, Marin what information do you need to investigate?

Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Could not find 'TelerikBlazor.initMenuItem' ('TelerikBlazor' was undefined).
      Error: Could not find 'TelerikBlazor.initMenuItem' ('TelerikBlazor' was undefined).
          at Array.forEach (<anonymous>)
          at e.findFunction (https://.../crm-b/_framework/blazor.webassembly.js:1:1247)
          at b (https://.../crm-b/_framework/blazor.webassembly.js:1:2989)
          at new Promise (<anonymous>)
          at Object.beginInvokeJSFromDotNet (https://.../crm-b/_framework/blazor.webassembly.js:1:3908)
          at Object.w [as invokeJSFromDotNet] (https://.../crm-b/_framework/blazor.webassembly.js:1:64006)
          at _mono_wasm_invoke_js_blazor (https://.../crm-b/_framework/dotnet.5.0.0.js:1:190800)
          at do_icall (<anonymous>:wasm-function[10595]:0x194e46)
Microsoft.JSInterop.JSException: Could not find 'TelerikBlazor.initMenuItem' ('TelerikBlazor' was undefined).
Error: Could not find 'TelerikBlazor.initMenuItem' ('TelerikBlazor' was undefined).
    at Array.forEach (<anonymous>)
    at e.findFunction (https://.../crm-b/_framework/blazor.webassembly.js:1:1247)
    at new Promise (<anonymous>)
    at Object.beginInvokeJSFromDotNet (https://.../crm-b/_framework/blazor.webassembly.js:1:3908)
    at Object.w [as invokeJSFromDotNet] (https://.../crm-b/_framework/blazor.webassembly.js:1:64006)
    at _mono_wasm_invoke_js_blazor (https://.../crm-b/_framework/dotnet.5.0.0.js:1:190800)
    at do_icall (<anonymous>:wasm-function[10595]:0x194e46)
   at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__15`1[[System.Object, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at Telerik.Blazor.Components.Menu.MenuItem`1.<OnAfterRenderAsync>d__80[[CRM.Client.Model.MenuItem, CRM.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext()
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)

 

 

Aleksandr
Top achievements
Rank 1
Bronze
Bronze
Veteran
 answered on 25 Nov 2020
4 answers
193 views

Hi

I have defined an OnUpload handler like this on the TelerikUpload:

<TelerikUpload AutoUpload="false" ...  OnUpload="@OnUploadHandler" ></TelerikUpload>

 

It turns out that the handler is only called when I click on the 'Upload' button. If the upload fails, the retry icon is shown. However when clicking on the Retry icon, the OnUpload handler is not called.

In my case that is a problem, because I add headers and request in this event:

async Task OnUploadHandler(UploadEventArgs e)
{
    e.RequestData.Add("SomeFormField", "Hello world!"); // for example, user name
    e.RequestHeaders.Add("Authorization", "Bearer " + Token); // for example, authentication token
}

 

It does not matter if the request is to same host or cross-domain.

Best regards


 

 

 

Marin Bratanov
Telerik team
 answered on 25 Nov 2020
1 answer
864 views

just a basic list as a data source:

public List<Feature> Features { get; set; } = new List<Feature>();

as simple as I can make the Grid:

<TelerikGrid Data="@Features" Sortable="true">
    <GridColumns>
        <GridColumn Field="Qty" />
    </GridColumns>
</TelerikGrid>

And an event to add features:

void AddFeature()
{
    Features.Add(new Feature() { Qty = 1 });
}

 

I can add the features just fine, but nothing shows in the grid until I sort, then it is all there - what am I missing?

8.5.2
Nadezhda Tacheva
Telerik team
 answered on 24 Nov 2020
1 answer
736 views

Hello,

Sorry if this has already been asked, but I couldnt find a topic on that subject.

I would like to know if it's possible to validate for a duplicate value for a field when submitting an add/edit of a record in a grid (popup edit) and return an error in the form to inform the user that the value is already used.

I am able to do it in the appropriate handle after the submit but i can't seem to prevent the form to close and to display an error message to the user.

Thanks!

Nadezhda Tacheva
Telerik team
 answered on 24 Nov 2020
1 answer
554 views
Can you apply an OR condition on 2 column filters, or programmatically set the filter value for the GridSearchBox ?
Nadezhda Tacheva
Telerik team
 answered on 24 Nov 2020
7 answers
226 views
I am using a Combobox (probably the same for all editors) and it is auto assigned the k-state-valid class upon creation. I would like to have this class only be assigned once the Forms Validate method is called. Is there a way to do this?
Marin Bratanov
Telerik team
 answered on 24 Nov 2020
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?