Editor in Window

3 posts, 1 answers
  1. Rob
    Rob avatar
    3 posts
    Member since:
    Jun 2011

    Posted 01 Sep 2020 Link to this post

    Is it possible to use an editor in a window? The following seems to hang the application when opening the window:

    @page "/test"
    <div class="container-fluid">
        <TelerikWindow Left="3rem" Top="2rem" Visible="@Visible">
            <WindowTitle>Test</WindowTitle>
            <WindowActions><WindowAction Name="Close" @onclick="@(() => Visible = false)" /></WindowActions>
            <WindowContent>
                    <TelerikEditor @bind-Value="Body" Width="650px" Height="400px"></TelerikEditor>
            </WindowContent>
        </TelerikWindow>   
        <TelerikButton ButtonType="@ButtonType.Button" OnClick="@(() => Visible = true)">Editor</TelerikButton>   
    </div>
     
    @code{
        private string Body { get; set; }
        private bool Visible { get; set; }
    }
  2. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    5699 posts

    Posted 01 Sep 2020 Link to this post

    Hello Rob,

    This issue is caused by this bug, and you can find a workaround in my post from 18 Aug 2020: https://feedback.telerik.com/blazor/1430180-telerikwindow-hosted-within-a-component-hosted-in-a-telerikwindow-goes-into-infinite-loop-eating-memory. I've added your Vote to it to raise its priority and you can Follow it for email status notifications.

     

    Regards,
    Marin Bratanov
    Progress Telerik

    Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

  3. Rob
    Rob avatar
    3 posts
    Member since:
    Jun 2011

    Posted 01 Sep 2020 Link to this post

    Ok, thanks for that Marin!
Back to Top