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?
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 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)
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)
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
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?
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!