From: SourceForge.net <no...@so...> - 2010-09-29 18:22:50
|
Bugs item #3078191, was opened at 2010-09-29 18:22 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=782464&aid=3078191&group_id=151897 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://me.yahoo.com/a/ONjK9RYd () Assigned to: Nobody/Anonymous (nobody) Summary: CheckboxList looses state inside Anthem Table.Visible=false Initial Comment: .Net 1.1 : Anthem 1.5.3 It seems that Checkboxlist selected items are not persisted when you put your checkboxlois inside an anthem table, and set it visible=false, then visible=true. Simple print sreen attached to show the problem. Code : protected System.Web.UI.WebControls.Button HideTables; protected Anthem.Table Table1; protected System.Web.UI.WebControls.Table Table2; protected System.Web.UI.WebControls.Button ShowTables; override protected void OnInit(EventArgs e) { .... TableRow tr=new TableRow(); TableCell tc=new TableCell(); tr.Controls.Add(tc); Table1.Rows.Add(tr); CheckBoxList cbx=new CheckBoxList(); cbx.Items.Add(new ListItem("Test1","test1")); cbx.Items.Add(new ListItem("Test2","test2")); tc.Controls.Add(cbx); TableRow tr2=new TableRow(); TableCell tc2=new TableCell(); tr2.Controls.Add(tc2); Table2.Rows.Add(tr2); CheckBoxList cbx2=new CheckBoxList(); cbx2.Items.Add(new ListItem("Test1","test1")); cbx2.Items.Add(new ListItem("Test2","test2")); tc2.Controls.Add(cbx2); .... } private void HideTables_Click(object sender, System.EventArgs e) { Table1.Visible=false; Table2.Visible=false; } private void ShowTables_Click(object sender, System.EventArgs e) { Table1.Visible=true; Table2.Visible=true; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=782464&aid=3078191&group_id=151897 |