I'm using RadFlowDocument to edit a document (docx), this file is a combination of different docx file.
I have to add Table of content in this file. I saw this code but it is using RadDocument instead of RadFlowDocument class
RadDocument document = new RadDocument(); RadDocumentEditor editor = new RadDocumentEditor(new RadDocument()); editor.InsertField(new TableOfContentsField(), FieldDisplayMode.Result);
How can I add ToC using RadFlowDocument ?
Thanks
4 Answers, 1 is accepted
Hi Muhammad,
This is still not supported, we have a feature request for it on our feedback portal: https://feedback.telerik.com/document-processing/1356020-wordsprocessing-table-of-contents-toc-field.
We are already working on this and it will be available in the next official release.
Let me know if I can assist you further.
Regards,
Dimitar
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/.

Thanks for your reply.
Is it possible if after saving the document using RadFlowDocument, I open it in RadDocument and add the Table of content ? since I think RadDocument does support TOC.
If possible will this have any impact on the design of the document ?
Thanks,
Hi Muhammad,
Yes, this is possible you need to use one of the formats that are supported by both suites. For example the Docx format. Once the document is ready, export it to a file or stream then import it to RadDocument and add the TOC, and export it again. More information about the import-export is available in the following articles:
I hope this helps. Should you have any other questions do not hesitate to ask.
Regards,
Dimitar
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/.

Could you please tell me what is the official date for the next release ?
Thanks
Hi Muhammad,
The release is scheduled for the middle of January. I can't provide an exact date at the moment.
Regards,
Dimitar
Hi Muhammad,
Yes I am sure, I send your feedback to the team and they will update the item status.
Let me know if I can assist you further.