[19.4.0.56][RichTextEditor & Dialog] Toolbar display error

Hi All,

I tested Dialog and RichTextEditor in 19.4.0.56 version and found tool bar display error.

  1. RichTextEditor not show tool bar
  2. When scroll tool bar display overlap screen.

Please see gif and project attachment for more detail.


Anybody help me, how to fix this issue?

Thank you & Best Regards,

Sun



Attachment: RichTextEditor_Dialog_c0ff808e.zip


5 Replies 1 reply marked as answer

BS Buvana Sathasivam Syncfusion Team March 22, 2022 06:22 PM UTC

Hi Mr Sun, 

Greetings from Syncfusion support. 
To solve your problem, you need to refresh the SfRichTextEditor component after opening the SfDialog component. Please find the below code and sample for your reference. 

<SfDialog Visible=true Width="500px"> 
   <ChildContent> 
       <DialogEvents Opened="@DialogOpen"></DialogEvents> 
          <SfRichTextEditor @ref="RteObj"…>….</SfRichTextEditor> 
    </ChildContent> 
</SfDialog> 
@code { 
    SfRichTextEditor RteObj; 
    private void DialogOpen() 
    { 
        this.RteObj.RefreshUI(); 
    } 
} 
 




Please check the above solution and let us know if your problem is solved or not. 

Regards, 
Buvana S 


Marked as answer

MS Mr Sun March 23, 2022 05:49 AM UTC

Hi  Buvana Sathasivam,

That works for me.

Thank you!



BS Buvana Sathasivam Syncfusion Team March 23, 2022 09:03 AM UTC



SG Sven G April 26, 2024 02:54 PM UTC

@Buvana Sathasivam


I'm using the built-in dialog for the SfGrid Edit functionality. How to get the RichTextEditor working with this setup?



VJ Vinitha Jeyakumar Syncfusion Team April 29, 2024 06:40 AM UTC

Hi Sven G,

We suggest you to call the ‘RefreshUI()’ public method of the Rich Text Editor, in the ‘Created’ event of the RichTextEditor. The ‘RefreshUI’ method refreshes the Editor after the Rich Text Editor is rendered inside the Grid edit dialog. We have also prepared a sample that tries to meet your requirement.

Code snippet:
 <SfGrid DataSource="@Orders" AllowPaging="true" @ref="Grid" Toolbar="@(new string[] { "Add", "Edit", "Delete", "Cancel", "Update" })" Height="315">
        <GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="EditMode.Dialog">
        <Template>
            @{
              ......
                ........
                            <SfRichTextEditor @ref="rteObj" EnableXhtml="true" Placeholder="Enter Value">
                                <RichTextEditorEvents Created="@Created"></RichTextEditorEvents>
                            </SfRichTextEditor>
                        </div>
                    </div>
                </div>
            }
        </Template>
    </GridEditSettings>
  
</SfGrid>

@code {
public void Created()
{
    this.rteObj.RefreshUI();
}
}

Sample attached below,

Regards,
Vinitha

Attachment: RTE_Server_11_b0dc8307.zip

Loader.
Up arrow icon