This is a migrated thread and some comments may be shown as answers.

Insert Grid component

1 Answer 64 Views
Editor
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 31 Mar 2021, 10:30 PM

Hi,

Does anyone know if it is possible to insert a grid component (that is currently rendered on screen) into the editor?

My thoughts are that it should be possible to "convert" the grid into HTML code using the table tags.

Appreciate any thoughts or advice.

Cheers

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 01 Apr 2021, 12:56 PM

Hello David,

If you can plug logic similar to unit testing or framework rendering to get the rendered HTML, you could add it to the field that your editor users.

Another option might be to take that HTML as a string from the DOM with JS Interop and pass it back to the C# code.

As far as I know, there is no built-in facility in the Blazor framework for you to get the rendered code and markup from a component or from a template.

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Editor
Asked by
David
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or