Jan 26, 2011, 1:58 PM
FieldSet's property Collapsed seems not work well
Hi:
Here is my codes:
Exaple:
Let the fieldset collapsed in codebehind, and then expand it in IE, click the button to check the result.
The alert shows 'True'!
When the page postback, the fieldset has been expanded, why the Collapsed=true?:p
Here is my codes:
Exaple:
<ext:FieldSet id="fs" Title="FieldSet1" Collapsible="true" runat="server">
</ext:FieldSet>
<ext:Button ID="btn" Text="button1" runat="server">
<DirectEvents>
<Click OnEvent="btn_Click"></Click>
</DirectEvents>
</ext:Button>
Code Behind: protected void Page_Load(object sender, EventArgs e)
{
fs.Collapsed = true; // let the fieldset collapsed in codebehind
}
protected void btn_Click(object sender, DirectEventArgs e)
{
X.MessageBox.Alert("is collapsed?", fs.Collapsed.ToString()).Show(); // show the fieldset's status
}
Do as follow:Let the fieldset collapsed in codebehind, and then expand it in IE, click the button to check the result.
The alert shows 'True'!
When the page postback, the fieldset has been expanded, why the Collapsed=true?:p