Hi,
I tried to bind rich textbox which present in datatemplate.I'm able to bind(using the example given in this forum http://www.telerik.com/community/forums/silverlight/richtextbox/how-do-you-bind-richtextbox.aspx ) but i am getting few errors when i do the following the things
1. In the initial binding,Am getting "Layout cycle detected. Layout could not complete." in the Html changed method at
2. After this i removed the error line and tried to bind the data(set the richtextbox in readonly mode),its binding correctly,but when i doubleclick on the richtext box i am getting webpage error dialogbox saying Unhandled Error in Silverlight Application
Code: 4008
Category: RuntimeError
Message: Layout cycle detected. Layout could not complete.
MethodName:
3. Then i removed Readonly mode option,after binding I doubleclick on the richtext box previous error occurs.
The other issue is when ever i am binding the richtextbox,the text inside it is taking so much margin even though i set zero margin and other settings in control load but i getting differently when binding the data,please see the image i attached
sample data : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " xmlns=" http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
.p_2F83C0B6 { margin: 0px 0px 12px 0px;text-align: lefttext-indent: 0pt;padding: 0px 0px 0px 0px; }
.s_D8D99854 { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000;background-color: #FFFFFE; }
</style></head><body><p class="p_2F83C0B6"><span class="s_D8D99854">test</span></p></body></html>
I tried to bind rich textbox which present in datatemplate.I'm able to bind(using the example given in this forum http://www.telerik.com/community/forums/silverlight/richtextbox/how-do-you-bind-richtextbox.aspx ) but i am getting few errors when i do the following the things
1. In the initial binding,Am getting "Layout cycle detected. Layout could not complete." in the Html changed method at
control.radRichTextBox.UpdateEditorLayout()
2. After this i removed the error line and tried to bind the data(set the richtextbox in readonly mode),its binding correctly,but when i doubleclick on the richtext box i am getting webpage error dialogbox saying Unhandled Error in Silverlight Application
Code: 4008
Category: RuntimeError
Message: Layout cycle detected. Layout could not complete.
MethodName:
3. Then i removed Readonly mode option,after binding I doubleclick on the richtext box previous error occurs.
The other issue is when ever i am binding the richtextbox,the text inside it is taking so much margin even though i set zero margin and other settings in control load but i getting differently when binding the data,please see the image i attached
sample data : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " xmlns=" http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
.p_2F83C0B6 { margin: 0px 0px 12px 0px;text-align: lefttext-indent: 0pt;padding: 0px 0px 0px 0px; }
.s_D8D99854 { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000;background-color: #FFFFFE; }
</style></head><body><p class="p_2F83C0B6"><span class="s_D8D99854">test</span></p></body></html>