Telerik Forums
UI for Blazor Forum
0 answers
167 views

Any idea why this would work when running locally but returns "Unauthorized" when running in a Azure Web App?  Using AAD for authentication and the Blazor Upload calls to the same controller work fine.  I tried to get the User Token when the app starts, but it is null.

                HttpClient client = ClientFactory.CreateClient();

                var response = await client.PostAsJsonAsync<UploadDataViewModel>(ToAbsoluteUrl("api/IntUpload/savenotes"), _model);

                if (response.IsSuccessStatusCode)
                {
                    ShowNotification("success", "Notes file was successfully recorded.");
                }
                else
                {
                    ShowNotification("error", "Notes file failed to upload.");
                }

 

This is what I'm using for authentication in the Program.cs file:

builder.Services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)
    .AddMicrosoftIdentityWebApp(builder.Configuration.GetSection("AzureAd"))

 

 

Chris
Top achievements
Rank 1
 asked on 16 Mar 2023
1 answer
1.5K+ views

Hi

 

After our update to .Net 7, FluentValidation does not work with complex models anymore.

We're using FluentValidation 11.5.1 (latest)

Blazored.FluentValidation 2.1.0 (latest)

I get the error message: Cannot validate instance of type "The Composed Class Type ". Can only validate Instance of Type "Parent Class".

 

Has somebody a solution for this issue?

It worked fine in the previous version.

 

Thank you.

 

Nicolas
Top achievements
Rank 1
Iron
 answered on 16 Mar 2023
1 answer
316 views

I've made a custom FormItem and I need access to the EditContext. This works, but - is there a simpler way to get access to the EditContext?

The Form:


    <TelerikForm
        Model="@AWonderfullModel" 
        OnSubmit="@OnSubmitHandler"
        @ref="@FormRef">
        
        <FormItems > 
            <CascadingValue Name="TheForm" Value="@FormRef">
                @foreach (var row in RexFormItems) 
                {
                    <DynamicComponent Type="@row.Component" Parameters="@row.Parameter"/>
                }
            </CascadingValue>  
        </FormItems>
         .... 
        
    </TelerikForm>


I populate the FormRef via the CascadingValue

and in my CustomControl simple:


  [CascadingParameter]
  public TelerikForm TheForm { get; set; }

....


protected override void OnParametersSet()
{
       Model = TheForm.EditContext.Model;
       ...
}

 

This works well, but we discussed this and there was the Idea, that the Form or the EditContext is reachable in an other way.

 

Dimo
Telerik team
 answered on 16 Mar 2023
1 answer
427 views

When a Blazor TelerikGrid component is configured to use virtual scrolling (GridScrollMode.Virtual) in combination with Inline or Incell editing, the scroll position will always jump to the top after exiting the cell edit.

This snippet shows the issue: https://blazorrepl.telerik.com/GHudPSlF1136joxn59

To replicate, scroll down a bit, edit a cell and the grid scroll position will jump to the top.

Dimo
Telerik team
 answered on 16 Mar 2023
0 answers
115 views

I just generated a new theme using Theme Builder and detected that the "k-align-items-baseline" rule is not included. This generates backward incompatibility although it is easily fixable. 

My question is if this is intentional or a bug. Can I expect other styles to be missing as well?

Regards.
Twain
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 15 Mar 2023
0 answers
111 views
https://nuget.telerik.com/v3/index.json - service unavailable, can't build any project.
Ivan
Top achievements
Rank 3
Iron
Iron
Iron
 updated question on 15 Mar 2023
1 answer
237 views

Hi

I'm trying to add some spacing between the pie pieces in a pie chart. I can achieve this by using the ExplodeField property and setting true on all the series items. However i would like to have the spacing between the pieces a bit smaller, is this possible?

Also i would like to be able to set stroke color and width of the pieces. I cant find any info on how to achieve this in the documentation.

See attached image on what i'm trying to do. I have fiddled with the rendered html in dev tools.

 

Thanks in advance!

 

Nadezhda Tacheva
Telerik team
 answered on 15 Mar 2023
1 answer
189 views

Hi, I have a grid with a nullable TimeSpan column.  When exporting to Excel the format shows as 09:02:39.  I'd like it just to be 09:02. In OnExcelBeforeExport I have args.Columns[3].NumberFormat = BuiltInNumberFormats.GetHourMinuteAMPM(); but it has no effect.  Should it?

Nadezhda Tacheva
Telerik team
 answered on 14 Mar 2023
1 answer
496 views

I have the following buttons

When I press enter nothing happens

<DialogButtons>
<TelerikButton OnClick="@(() => { IsModalVisible = false; })">Cancel</TelerikButton>
<TelerikButton OnClick="@(() => { IsModalVisible = false; CreateTrade();})" ButtonType="ButtonType.Submit" ThemeColor="@ThemeConstants.Button.ThemeColor.Primary">Create Trade</TelerikButton>
</DialogButtons>

Dimo
Telerik team
 answered on 14 Mar 2023
1 answer
293 views

How can I download a Telerik SVG icon and use it in my manifest file?

I have created a shortcut menu and would like to use the following icons on the menu items

k-i-eye,  k-i-track-changes-accept, trade k-i-file-add.

I know how to use the Telerik icons in code. But for this I need to have them in www/images

Twain
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 13 Mar 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?