[Mono-bugs] [Bug 48802][Maj] New - CheckBoxList bug

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 13 May 2004 23:42:43 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jackson@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=48802

--- shadow/48802	2004-05-13 23:42:43.000000000 -0400
+++ shadow/48802.tmp.550	2004-05-13 23:42:43.000000000 -0400
@@ -0,0 +1,100 @@
+Bug#: 48802
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: RESOLVED   
+Resolution: WONTFIX
+Severity: Unknown
+Priority: Major
+Component: Sys.Web
+AssignedTo: jackson@ximian.com                            
+ReportedBy: yaronsh@mainsoft.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CheckBoxList bug
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+The selected items on the checkbox list are not shown after toggling 
+enable mode.
+
+Steps to reproduce the problem:
+1. Open the attached aspx file.
+2. Check some items in the CheckBoxList
+3. Click on the button "Disable"
+4. Click on the button "Enable"
+
+Actual Results:
+After clicking on the "Enable" button all the items become unchekced.
+
+Expected Results:
+The checked items before disabling the CheckBoxList should stayed checked.
+
+How often does this happen? 
+Always
+
+Additional Information:
+1. Disable doesn't work at all at "Mozilla" explorer.
+2. I saw that indices are saved but "lost" (null value on LoadViewState 
+   at ListControl).
+
+------- Additional Comments From yaronsh@mainsoft.com  2003-09-24 04:05 -------
+Created an attachment (id=5411)
+Testcase
+
+
+------- Additional Comments From yaronsh@mainsoft.com  2003-09-24 04:13 -------
+At first, the selected indices are Selected.
+After, they are un-selected at IPostBackDataHandler.LoadPostData
+at the CheckBoxList class.
+
+------- Additional Comments From yaronsh@mainsoft.com  2003-09-24 10:59 -------
+This bug appears at MS version too.
+
+
+------- Additional Comments From gonzalo@ximian.com  2003-09-26 21:09 -------
+Fixed the "disabled not working" problem.
+
+The viewstate problem can be considered a "feature" until they fix
+theirs. While fixing another bug sometime ago, I realized that it only
+saves indices under certain circumstances for ListControl derived
+classes. That's why CheckBoxList subcontrols viewstate is not saved.
+
+Thanks!
+
+
+------- Additional Comments From yaronsh@mainsoft.com  2003-09-29 03:07 -------
+Wait wait wait, there are cases that can be treated as "features".
+AdRotator Font for eaxpmle is not influenced by chnaging the font's 
+properties.
+Since AdRotator is not a control that font is suppose to be a 
+commonly used element, I treated this as a policy.
+Our case is completly different, there is no other case that a 
+disabled control loses it's status when it enabled again.
+This one is clearly a bug.
+Why should we wait for MS???
+
+------- Additional Comments From gonzalo@ximian.com  2003-09-29 03:48 -------
+
+Okay, fixing this involves saving the indices for ListBox and
+CheckBoxList. DropDownList and RadioButtonList do not suffer this problem.
+
+I'll do it now.
+
+------- Additional Comments From yaronsh@mainsoft.com  2003-09-29 04:02 -------
+Great!!! 
+BTW, I didn't know that a ListBox suffers from the same problem... 
+(Are you sure? I think my tests seem to work...).
+Maybe we can send the fix to MS (teach them how to do it right... 
+:-) ).
+
+------- Additional Comments From gonzalo@ximian.com  2003-12-01 15:22 -------
+Seems like this is back again
+
+------- Additional Comments From jackson@ximian.com  2004-05-13 23:42 -------
+this one is basically impossible and is really a mozilla bug and it
+makes me want to cry.