Telerik Forums
Community Forums Forum
0 answers
93 views

I´m working in a blazor wasm hosted app, i had problems with posting on IIS so searching solutions, I installed de nugget packet: Microsoft.NETCore.App.Runtime.Mono.browse-wasm, then it seems to be incompatible with something and I unistalled, then the app stop working and bring me this error:

VM11 blazor.webassembly.js:1 Error: One or more errors occurred. (Error: Could not find 'Blazor._internal.attachRootComponentToElement' ('attachRootComponentToElement' was undefined).) at Jn (marshal-to-js.ts:349:18) at Tl (marshal-to-js.ts:306:28) at 00b21cf6:0x1fad7 at 00b21cf6:0x1bf9f at 00b21cf6:0xf16c at 00b21cf6:0x1e7f1 at 00b21cf6:0x1efe7 at 00b21cf6:0xcfbc at 00b21cf6:0x44213 at e.<computed> (cwraps.ts:338:24)

 

the project si call Risk.

This is my Risk.Server.csproject:

<Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>net8.0</TargetFramework> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> </PropertyGroup> <ItemGroup> <PackageReference Include="AutoMapper" Version="12.0.1" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.1" /> <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.1" /> <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.1" /> <PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.1" /> <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.1" /> <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference> <PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" /> <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.3.1" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\Client\Risk.Client.csproj" /> <ProjectReference Include="..\Shared\Risk.Shared.csproj" /> </ItemGroup> </Project>

and this is my index.html:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>Risk</title>
    <base href="/" />
    <link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
    <link href="css/app.css" rel="stylesheet" />
    <link href="Risk.Client.styles.css" rel="stylesheet" />
    <link rel="stylesheet" href="_content/Radzen.Blazor/css/software-base.css">
</head>

<body>
    <div id="app">Loading...</div>

    <div id="blazor-error-ui">
        An unhandled error has occurred.
        <a href="" class="reload">Reload</a>
        <a class="dismiss">🗙</a>
    </div>
    <script src="_framework/blazor.webassembly.js"></script>
    <script src="_framework/blazor.webassembly.js" autostart="false"></script>
    <script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script>
        window.downloadFile = async (fileName, byteArray) => {
            const blob = new Blob([new Uint8Array(byteArray)]);
            const arrayBuffer = await blob.arrayBuffer();
            const url = URL.createObjectURL(blob);
            const anchorElement = document.createElement('a');
            anchorElement.href = url;
            anchorElement.download = fileName ?? '';
            anchorElement.click();
            anchorElement.remove();
            URL.revokeObjectURL(url);
        }
    </script>


</body>

</html>
can someone help for this error, thanks.

 

 

 

Miguel
Top achievements
Rank 1
 asked on 11 Jul 2024
1 answer
56 views
When creating a new project with the latest the version on ThemeBuilder, changing the $primary color value does not update ThemeBuilder or the compiled CSS variable (--kendo-color-primary) when exporting. Changing any other color value works as expected, see the screenshot below:
Nick Iliev
Telerik team
 answered on 28 Jun 2024
0 answers
112 views

Hi we're receiving this error regarding Kendo.Core.Export.dll however the DLL is present. Any ideas? There are similar issues here in the Community Forums however we have yet to discover a solution.

 

Line 18 in Program.cs:

builder.Services.AddControllersWithViews()

 

Complete exception message:

Application: w3wp.exe
CoreCLR Version: 8.0.424.16909
.NET Version: 8.0.4
Description: The process was terminated due to an unhandled exception.
Exception Info: 
Application '/LM/W3SVC/2/ROOT/appname' with physical root 'C:\webapplications\appname\06072024\' hit unexpected managed exception, exception code = '0xe0434352'. First 30KB characters of captured stdout and stderr logs:
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Kendo.Core.Export, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Kendo.Core.Export, Culture=neutral, PublicKeyToken=null'
   at System.Reflection.RuntimeAssembly.<InternalLoad>g____PInvoke|49_0(NativeAssemblyNameParts*, ObjectHandleOnStack, StackCrawlMarkHandle, Int32, ObjectHandleOnStack, ObjectHandleOnStack)
   at System.Reflection.RuntimeAssembly.InternalLoad(NativeAssemblyNameParts*, ObjectHandleOnStack, StackCrawlMarkHandle, Boolean , ObjectHandleOnStack, ObjectHandleOnStack)
   at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName, StackCrawlMark&, AssemblyLoadContext , RuntimeAssembly , Boolean )
   at System.Reflection.RuntimeAssembly.InternalLoad(String, StackCrawlMark&, AssemblyLoadContext )
   at System.Reflection.Assembly.Load(String)
   at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.<>c.<GetApplicationPartAssemblies>b__8_0(ApplicationPartAttribute name)
   at System.Linq.Enumerable.SelectArrayIterator`2.Fill(ReadOnlySpan`1, Span`1, Func`2)
   at System.Linq.Enumerable.SelectArrayIterator`2.ToArray()
   at System.Linq.Buffer`1..ctor(IEnumerable`1)
   at System.Linq.OrderedEnumerable`1.GetEnumerator()+MoveNext()
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at System.Linq.Enumerable.ConcatIterator`1.MoveNext()
   at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateDefaultParts(String)
   at Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.GetApplicationPartManager(IServiceCollection, IWebHostEnvironment)
   at Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection)
   at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddControllersCore(IServiceCollection)
   at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddControllersWithViewsCore(IServiceCollection)
   at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddControllersWithViews(IServiceCollection)
   at Program.<Main>$(String[]) in C:\AppName\Program.cs:line 18

Alex
Top achievements
Rank 1
 asked on 07 Jun 2024
1 answer
84 views

I am trying to maintain a pre-existing piece of software that uses Telerik Data Access for data access and also Telerik Kendo on the frontend. Several Kendo grids in the software represent tables in the database, except in order to be more user-friendly, instead of displaying foreign keys, they display the Display Names of the objects those foreign keys represent.

In order to fill the grid, then, the data call made by the UI might look something like this:

[root]/DataServices/[tenant]/odata/HouseModels?%24format=json&%24top=100&%24count=true&%24expand=DoorStyle(%24select%3DID%2CDisplayName)%2CWindowStyle(%24select%3DID%2CDisplayName)%2CDeckStyle(%24select%3DID%2CDisplayName)%2CFinishStyle(%24select%3DID%2CDisplayName)

This works fine in all ways except one: if a foreign key column is nullable and the user sorts or filters on that column, all rows that have a null value in that column will disappear. (Ironically, this even happens if the user filters specifically to show only null values! They will always see no results!)

I personally don't care whether null values are sorted before or after non-null values, but entire rows should never disappear entirely just from sorting (or in a way that makes zero sense for a particular filter).

[Note: The 'HouseModels' thing above is just an example. My data has nothing to do with houses, so yes, it does make sense to have nullable FKs.]

Using SQL Profiler, I believe I have determined the Data Access behaviour that is causing this problem. When the user tries to apply a sort or filter, the first call received by the database will look something like this if the user sorts the 'Door Style' column:

SELECT  TOP(100)
a.[ID] AS COL1,a.[FinishStyleID] AS COL2,a.[DoorStyleID] AS COL3,
a.[WindowStyleID] AS COL4,a.[DeckStyleID] AS COL5,
(CASE WHEN a.[DoorStyleID] IS NULL THEN NULL
    ELSE b.[DisplayName] END)
AS xj1
FROM [HouseModels] a
JOIN [User DoorStyles] AS b
ON (a.[DoorStyleID] = b.[ID])
/*permissions-related SQL omitted*/
ORDER BY xj1 DESC

From what I can tell, the results of this first call determine what rows will be visible in the grid, because the subsequent data calls are to fulfill all of the 'expand' requirements for all the IDs in the result of that first call.

As you can see, this means the problem is in the "JOIN" in the first call. Whether the user is filtering or sorting, that JOIN will always be on the column being sorted or filtered. Due to that being a "JOIN" instead of a "LEFT JOIN", all rows with a null value in that column are completely omitted from the results.

Is there any way that I can change this to be a LEFT JOIN? I don't know how to configure or override that part of what Data Access is doing.

[Note: At this time, we have to keep using Data Access. Completely replacing that is way beyond the scope of this small bug I am trying to fix.]

Matt
Top achievements
Rank 1
Iron
 answered on 06 Jun 2024
2 answers
85 views
As stated, please delete this Telerik account completely. There is no functionality in your Telerik Account Overview page to do this.
Jennifer
Telerik team
 answered on 04 Jun 2024
1 answer
220 views

Yes, you can add watermarks to your PDF Files. Use the PDF Watermark application to recognize your PDFs as a logo, image, or text. The tool can watermark your PDF File at one time on every Page of the PDF file. The tool's Best feature is customized watermarks of your choice and some multiple-time increases of the opacity level from lighter to darker and darker to lighter. The tool permits enough flexibility in setting position to the top, left, right, center, and middle. The software is a user-friendly application that a non-technician can understand and operate without technical help. Download the tool today.


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Jun 2024
1 answer
70 views
In our WPF project, we have an issue with the Telerik data grid that,
> We have implemented a cell style for setting the background colour based on condition by using the MultiValue Converter,

 

Style code:

<Style x:Key="AFLinkCellFGStyle" TargetType="telerik:GridViewCell" BasedOn="{StaticResource {x:Type telerik:GridViewCell}}">
                <Style.Resources>
                <local:AFCellLinkFGConverter x:Key="AFCellLinkFGConverter"/>
                </Style.Resources>
                <Setter Property="Background"> 
                    <Setter.Value>
                    <MultiBinding Converter="{StaticResource AFCellLinkFGConverter}">
                        <Binding RelativeSource="{RelativeSource Self}"/>
                        <Binding />
                    </MultiBinding>
                    </Setter.Value>
                </Setter>
                <Style.Triggers>
                    <Trigger Property="IsSelected" Value="True">
                        <Setter Property="Foreground" Value="Black"/>
                        <Setter Property="FontWeight" Value="ExtraBold"/>
                    </Trigger>
                </Style.Triggers>
            </Style>

 

Converter code:

 public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            if (values[1] is ArcFlashEvalRecord)
            {
                Efx.Assert(values[1] is ArcFlashEvalRecord && (values[1] as ArcFlashEvalRecord).pData != null, "FIX THIS - expecting ArcFlashEvalRecord and ArcBusData");
                GridViewCell cell = values[0] as GridViewCell;
                ArcFlashEvalRecord record = values[1] as ArcFlashEvalRecord;
                GridViewColumn column = cell.Column;
                if (column != null)
                {
                    AF_FieldType field_type = (AF_FieldType)column.GetValue(AttachedProp.TagProperty);
                    return AFCellInfo.GetCellInfo(field_type, record).BgBrush;
                }
            }
            return null;
        }

 

Issue: The issue is the background colour is not set properly for each cell.


Description: Initially the data is loaded and the Telerik data gets rendered in the display, we have more than 10 columns, and some of the last columns are hidden. Initially, the background colour worked properly for all cells. but when we horizontally scroll to the end of the data grid to see the hidden columns, at that time, the background of the cell is not set properly, it randomly sets the background colour for hidden column cells. it's changing every time we scroll.

Stenly
Telerik team
 answered on 31 May 2024
0 answers
61 views

Hi everyone!.

Im trying to put a "NumericTextBox" inside s "ForItem", cause i need extract some validation that i have in another file. and call some method that returns me a math result But when i try it, my proyect fails.

 

someone have  worked with something similar?

Jurgen
Top achievements
Rank 1
 updated question on 29 May 2024
1 answer
147 views

Hi Team,

Does Telerik have an option to export/download the report file in PowerPoint presentation format and allow our end users to edit before sending across the ppt?

Thanks

Momchil
Telerik team
 answered on 28 May 2024
1 answer
85 views
I m using kendo-treelist-checkbox-column component, can i  display this conditionally?.....i dont want to enable the check boxes for particular rows in treelist...is this possible ??
Missing User
 answered on 25 May 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?