Telerik Forums
UI for Blazor Forum
1 answer
127 views

If an editor is placed in a Window the page will just spin on startup.  Any other WindowContent I have tried works fine, it stops as soon as I add the Editor.

Is there a different way to do this or is this a bug?

 

 

<TelerikWindow Class="demo-window" Width="700px" Centered="true" Visible="true" Modal="false" @ref="EditWindow">
       <WindowTitle>
           <strong>Edit</strong>
       </WindowTitle>
       <WindowActions>
           <WindowAction Name="Close" />
       </WindowActions>
       <WindowContent>
           <TelerikEditor @bind-Value="@Value"
                          Height="880px">
           </TelerikEditor>       
       </WindowContent>
   </TelerikWindow>
Marin Bratanov
Telerik team
 answered on 18 Aug 2020
2 answers
484 views

Hi,

Is there a way to keep the UI culture info when exporting a grid to Excel?

I have a date field which is displayed in the browser as dd/MM/yyyy which is how I want it. But when exported to Excel it becomes MM/dd/yyyy.

I set the UI culture in the blazor Program.Main.

            var culture = new CultureInfo("en-GB");
            CultureInfo.DefaultThreadCurrentCulture = culture;
            CultureInfo.DefaultThreadCurrentUICulture = culture;

            System.Threading.Thread.CurrentThread.CurrentCulture = culture;
            System.Threading.Thread.CurrentThread.CurrentUICulture = culture;

I am using the WebAssembly version of Blazor.

 

Thanks,

Tom

 

 

Tom
Top achievements
Rank 1
 answered on 18 Aug 2020
2 answers
790 views

Hello,

Two quick questions:

1) Is it possible to use the control just for rendering HTML?

Assuming that I want to use the control to enter and edit HTML and later just render it on a web page.

Or should I just use the Blazor MarkupString for that?

 

2) Does the control provide some support for sanitising the HTML entered? Or do I need to analyse it to look for malware?

regards

Hedinn
Top achievements
Rank 1
 answered on 17 Aug 2020
9 answers
10.5K+ views

Environment: VS 2019 w/ all latest updates.

Installed Telerik UI For Blazor through Progress Control Panel.

Attempting to create new Telerik Blazor solution, or add new Telerik Blazor project to existing solution, yields the following error:

 

NU1101 Unable to find package Telerik.UI.for.Blazor. No packages exist with this id in source(s): Local Packages, Microsoft Visual Studio Offline Packages, nuget.org

 

Restarted VS as well as machine, same error.

Instructions on how to resolve would be appreciated.

Marin Bratanov
Telerik team
 answered on 17 Aug 2020
2 answers
971 views

I can successfully trigger the OnUpdate event from a simple GridColumn Field update with Incell editing but not when using an EditorTemplate. Any ideas what I'm doing wrong or missing?

<TelerikGrid Data=@ItemsOC
             EditMode="@GridEditMode.Incell"
             OnUpdate="@UpdateHandler">
    <GridColumns>
         
        <!-- This column DOES NOT trigger OnUpdate when edited. -->
        <GridColumn Field="Quantity" Title="EDIT Quantity">
            <EditorTemplate>
                @{
                    ItemToEdit = context as Item;
                    <TelerikNumericTextBox @bind-Value="@ItemToEdit.Quantity" Format="F2" />
                }
            </EditorTemplate>
        </GridColumn>
 
        <!-- This column DOES trigger OnUpdate when edited. -->
        <GridColumn Field="Quantity" />
 
        <GridColumn Field="Description" />
        <GridColumn Field="Cost" />
        <GridColumn Field="SubTotal" />
    </GridColumns>
</TelerikGrid>

 

Doug

Doug
Top achievements
Rank 1
Veteran
 answered on 16 Aug 2020
1 answer
701 views
similar to https://www.telerik.com/products/wpf/pivotgrid.aspx
Marin Bratanov
Telerik team
 answered on 15 Aug 2020
6 answers
292 views

Looking at your online documentation for upgrading a project to the latest version with nuget, I must be missing something... it only shows to run the update command. When I run it (NuGet Sources Update -Name "telerik.com" -Source "https://nuget.telerik.com/nuget"...), then I go into our projects, the nuget manager shows that 2.14.1 is latest stable. Actually it shows as the only version option.

How do we get the nuget manager to offer the latest release (2.16 at this time)?

Zack
Top achievements
Rank 1
Veteran
 answered on 14 Aug 2020
1 answer
1.5K+ views
Hello, 
i tried to use TabIndex with components so when user hits tab it automatically changes the focus to next component but it doesn't work
and i couldn't find a useful documentation  
Svetoslav Dimitrov
Telerik team
 answered on 13 Aug 2020
1 answer
1.3K+ views

I'm working on porting a UWP app to .Net core, and I can't find how to set the chart area color:

In the UWP, I have the graph sitting in a grid, and my code is

                    var tempBrush = new SolidColorBrush(GetBackgroundColor(_theData[0].ModuleType));
                    theGrid.Background = tempBrush;
                    dataGraph.Background = tempBrush;

I'd assume the Graph has the ability to set a style, but nope.

The samples don't seem to show how to set a lot of things like MajorStep, MinorStep, label rotation etc for a TimeAxis - and I can't find a good reference for what is available. (The API docs have almost no examples.)

Marin Bratanov
Telerik team
 answered on 10 Aug 2020
2 answers
1.9K+ views
When a modal window is shown the browser can still scroll in the background. See https://www.telerik.com/forums/how-to-globally-disabled-scrolling-when-a-modal-is-open for something similar that was happening in the kendo components. Any guidance on a fix for the blazor component?
Mr Chas
Top achievements
Rank 1
 answered on 10 Aug 2020
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?