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

Content not cleared

1 Answer 86 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Henk
Top achievements
Rank 1
Henk asked on 14 Jul 2009, 09:42 AM
Hi,
We encountered the following weird behavior: the  RadHtmlPlaceholder object is created in runtime as a child of a border wich is contained in a stackpanel The HtmlSource property of RadHtmlPlaceholder is programmatically set with a string(not an url).
When loading everything works fine. Before adding another control the stackpanel is cleared using the method children.clear.  But then the content of the RadHtmlPlaceholder doesn't dissapear at all, the second content is superimposed above the first content . No problem when an url is set instead of a string.

Henk

1 Answer, 1 is accepted

Sort by
0
Henk
Top achievements
Rank 1
answered on 14 Jul 2009, 03:13 PM
Hi All,

We have solved the problem after a suggestion from Valentin to add invalidateArrange() method after the clear.  It does not solve the problem but when adding the UpdateLaypout() method everything works fine.

The sequence for solving our problem is:
  1. Children.clear()
  2. InvalidateArrange()
  3. Updatelayout()

Tags
HTMLPlaceHolder
Asked by
Henk
Top achievements
Rank 1
Answers by
Henk
Top achievements
Rank 1
Share this question
or