power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

TWizard's ShowSideBar property can't be changed from php #442

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a TWizard:
<com:TWizard
OnActiveStepChanged="wizardActiveStep"
ID="wizard"
>
    <com:TWizardStep Title="step 1" StepType="Start">
        content in step 1, sidebar hidden
    </com:TWizardStep>

    <com:TWizardStep Title="step 2" StepType="Step">
        content in step 2, sidebar hidden
    </com:TWizardStep>

    <com:TWizardStep Title="finish step" StepType="Finish" ID="summary">
        content in finish step, we want the sidebar to show here
    </com:TWizardStep>
</com:TWizard>

2. Try to show/hide its SideBar from php:

    public function wizardActiveStep($sender, $param)
    {
        $this->wizard->ShowSideBar = ($sender->ActiveStep->id == "summary");
    }

What is the expected output? What do you see instead?
The setSideBar() function forced a recreation of the TWizard's child controls, 
thus breaking it.

Originally reported on the forum:
http://www.pradoframework.com/forum/index.php?topic=16695.0

Original issue reported on code.google.com by ctrlal...@gmail.com on 15 Feb 2013 at 8:29

GoogleCodeExporter commented 8 years ago
Typo: i mean the setShowSideBar() function, not the setSideBar() as written in 
the ticket.

Original comment by ctrlal...@gmail.com on 15 Feb 2013 at 8:31

GoogleCodeExporter commented 8 years ago
fixed in r3274

Original comment by ctrlal...@gmail.com on 15 Feb 2013 at 8:32