power-media / prado3

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

TAccordion's ActiveViewIndex property is not honored on postback #441

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1 Create a page:

<com:TAccordion HeaderCssClass="accHeader" ID="myAccordion"
    ActiveHeaderCssClass="accActHeader" >                       
    <com:TAccordionView Caption="Vista 1">
        Contenido 1...
    </com:TAccordionView>
    <com:TAccordionView Caption="Vista 2">
        Contenido 2...
    </com:TAccordionView>
    <com:TAccordionView Caption="Vista 3">                          
        <com:TButton ID="btnTest" onClick="btnTest_onClick" Text="Click!" />
    </com:TAccordionView>
</com:TAccordion>

2. Add some php:
public function btnTest_onClick()
{
    $this->myAccordion->ActiveViewIndex=1;
}

3. Open the third view and click on the button

What is the expected output? What do you see instead?
The page should load and show the second view, since the zero-based 
ActiveViewIndex property is set to 1.
Instead, the default view gets shown.

Please use labels and text to provide additional information.
It works using the ActievViewID property instead.
This could affect other controls like TTabPanel, too.

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

GoogleCodeExporter commented 8 years ago
fixed in r3275

Original comment by ctrlal...@gmail.com on 17 Feb 2013 at 5:24