Wednesday, October 12, 2011

Panel visible=true has no effect

PROBLEM: I have a Panel that I'm setting visible=true explicitly. The debugger passes over that line and visible still evaluates to False on the next line. Obviously as a result, the Panel is not shown. How is this possible?

SOLUTION: Ensure the panel is not nested inside another panel or any other type of container which has Visible set to false e.g. if you are going through some code to make some panels visible/invisible, then make sure you've first set the parent panel to visible=true (if relevant).

Exact same problem and solution was discussed on Stack Overflow http://stackoverflow.com/questions/2539204/panel-visible-true-has-no-effect


No comments:

Post a Comment