Telerik Forums
UI for Blazor Forum
2 answers
3.7K+ views
Blazor : How I can Re-Load or Refresh the grid after Modal - Popup is Closed or Save button is clicked? I am calling the Save Action in Modal-Popup page and not using EventCallback method
Vishnu
Top achievements
Rank 1
Iron
Veteran
 answered on 15 Sep 2020
1 answer
406 views

Hello,

When using the Blazor Editor I noticed a very large degradation in performance when the user is typing, if the Editor is inside an <EditForm>. I tried increasing the UpdateInterval to 500ms but it did not help much. When the user types fast, the text in the editor lags behind (appears very slowly).

When used outside an <EditForm> then the problem goes away.

Here is a code sample that reproduces the problem (in blazor WASM)

@inherits OwningComponentBase
@page "/TestEditor"
@using Telerik.Blazor.Components.Editor
 
 
<EditForm Model="Model">
    <DataAnnotationsValidator />
    <TelerikEditor Tools="@Tools" @bind-Value="@Model.Content" @ref="EditorRef" Height="500px">
        <EditorCustomTools>
            <EditorCustomTool Name="Keywords">
                <TelerikButtonGroup>
                    <ButtonGroupButton OnClick="Tag1"
                                       IconClass="k-i-background k-icon back-color" Title="Tag1" />
                    <ButtonGroupButton IconClass="k-i-foreground-color k-icon fore-color" Title="Fore Color" />
                </TelerikButtonGroup>
            </EditorCustomTool>
        </EditorCustomTools>
    </TelerikEditor>
</EditForm>
 
@code {
 
    public class EditorModel
    {
        public string Content { get; set; }
    }
 
    public EditorModel Model { get; set; } = new EditorModel();
    public TelerikEditor EditorRef { get; set; }
     
    public List<IEditorTool> Tools { get; set; } = new List<IEditorTool>() {
 
            new EditorButtonGroup(new Bold(), new Italic(), new Underline()),
            new EditorButtonGroup(new AlignLeft(), new AlignCenter(), new AlignRight()),
            new UnorderedList(),
            new EditorButtonGroup(new CreateLink(), new Unlink(), new InsertImage()),
            new InsertTable(),
            new EditorButtonGroup(new AddRowBefore(), new AddRowAfter(), new MergeCells(), new SplitCell()),
            new Format(),
            new FontSize(),
            new FontFamily(),
 
        new CustomTool("Keywords")
        //new CustomTool("CleanFormattingTool"),
        //new CustomTool("InsertHtmlTools")
    };
 
    public async Task Tag1()
    {
        string tag1 = "{##Type##}";
        var temp = new HtmlCommandArgs("insertHtml", tag1);
        await EditorRef.ExecuteAsync(temp);
    }
 
}
Marin Bratanov
Telerik team
 answered on 15 Sep 2020
2 answers
898 views

Is it not possible to use an EditForm inside of a tab?

When I try, I am getting: System.InvalidOperationException: EditForm requires a Model parameter, or an EditContext parameter, but not both.

<TelerikTabStrip @bind-ActiveTabIndex="activeTabIndex">
    <TabStripTab Title="Information">
        <EditForm Model="@ticket" OnValidSubmit="@UpdateTicket">
 
        </EditForm>
    </TabStripTab>
    <TabStripTab Title="Time Entry">
 
    </TabStripTab>
    <TabStripTab Title="History">
 
    </TabStripTab>
</TelerikTabStrip>
Bob
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 15 Sep 2020
1 answer
533 views

I want to use Telerik Blazor for a POC, but what happens after the 30 day limit? Do the controls stop working or is there a limitation on them?

Thanks

Svetoslav Dimitrov
Telerik team
 answered on 15 Sep 2020
1 answer
170 views

Hi,

I am trying to use a custom theme in our test blazor application. My steps:

1. https://bootswatch.com/darkly/   =>  _variables.scss

2. Sass ThemeBuilder: import of this SASS file

3. SELECTED COMPONENTS - only "Grid"

3. some changes / color corrections

4. download => it throws an exception (see the attachment below)

 

Thank you in advance for your assistance.

Svetoslav Dimitrov
Telerik team
 answered on 14 Sep 2020
5 answers
304 views

Both of these events take a collections of items (IEnumerable<IFormFile> for Save and string[] for Remove).

My question is why?? It appears that these methods are called for each file uploaded (or removed).  

It appears it is this way regardless of whether I auto upload or not? 

Why can't I just send the method 1 item instead of a collection of items???

Marin Bratanov
Telerik team
 answered on 11 Sep 2020
3 answers
454 views

When using multiple selection in the TreeList... i have the checkbox column as one of the columns and SelectChildren is set to true. The checkbox works great to select its children... but when clicking the row... it only selects the row you click on... and breaks the checkbox select children behavior... i am using 2 way binding for the selected items to preselect certain rows as well..

 

How can I get the row selection to adhere to the same select children rule of the checkbox column?

Marin Bratanov
Telerik team
 answered on 11 Sep 2020
1 answer
437 views

 

I have these two variables

public DateTime? StartDate { get; set; }
public string StartDateShortDate => StartDate?.ToShortDateString();

 

If I filter on StartDate the sorting start with 2016 then 2017 then 2018 ... like expected.

If I filter on StartDateShortDate the sorting is at "random".

Maurice

Marin Bratanov
Telerik team
 answered on 11 Sep 2020
1 answer
205 views

Is it possible to use something like ClientFooterTemplate in blazor?

Like it was possible in the MVC grid? Or do we haven to wait for this a little bit longer.

 

Maurice

Marin Bratanov
Telerik team
 answered on 11 Sep 2020
2 answers
244 views

Hey everyone,

I'm not sure it a ticket is already open about this or if it was already adressed but i'm having Null referenced exception on the OnInitializedAsync when i have FilterMode.FilterRow and there are no records yet. 

 

Works fine when i change for FilterMode.None. 

 

 

Svetoslav Dimitrov
Telerik team
 answered on 11 Sep 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?