Hi,
I have tried for dynamically add table to the RadDocument on RadDocumentDoubleClickEvent written in code behind file then also table is not reflected to the RadDocument. When I scrolled RadDocment then it reflected, how to add the dynamically table or any inline in element to RadDocument ?.
for reference my code is here
I have tried for dynamically add table to the RadDocument on RadDocumentDoubleClickEvent written in code behind file then also table is not reflected to the RadDocument. When I scrolled RadDocment then it reflected, how to add the dynamically table or any inline in element to RadDocument ?.
for reference my code is here
editor.Document.CaretPosition.MoveToPreviousInline();
var currpara = editor.Document.CaretPosition.GetCurrentParagraphBox().AssociatedParagraph;
var atable=ExpandedColl.Where(x=>x.Key==spanbox.Tag).FirstOrDefault().Value;
if
(atable!=
null
)
{
currsect.Blocks.AddAfter(currpara, atable);
}