2005-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / ChangeLog
index 7f2c7dbf3c21e2a0483d01f51c4efa037ad2a8dd..74c4979381e4bc6ef3b6b32b1732e995e2df49e9 100644 (file)
@@ -1,3 +1,222 @@
+2005-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Calendar.cs: remove Console.
+       * ListBox.cs: the name is the UniqueID, not the ClientID.
+       * WebControl.cs: Attributes is case insensitive.
+
+2005-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ImageButton.cs: use UniqueID in LoadPostData and also try just the
+       UniqueID without appending a ".x" or ".y". Fixes several issues in
+       mojoPortal. Thanks to Joe Audetter for his patience.
+
+2005-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ButtonColumn.cs: it was lacking databinding, so copied most of it
+       from BoundColumn.
+
+2005-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * FontInfo.cs: removed useless ctor.
+       * Style.cs: keep here some commented out debugging code.
+       * DataGrid.cs: the Items property does not create a new arraylist if
+       the items_list was already initialized. Add case for Separator.
+       * DataGridColumn.cs: when sorting is enabled, the linkbutton rendered
+       in the header columns has a special ForeColor handling.
+
+2005-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * DataGrid.cs: PageCount must persist in ViewState too and returns the
+       number of pages in the paged data source once we set that. Fix checks
+       for visibility of the pager: no more 2 pagers when custom paging is
+       enabled.
+
+2005-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ImageButton.cs: fix a bug reported on the list. We were triggering the
+       command event on every POST. And the 'name' attribute was not being
+       rendered, so the 'x,y' coordinates didn't have 'uniqueid.' prepended
+       and we couldn't find the values.
+
+2005-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * DataGrid.cs: fix the links for the numeric pager.
+
+2005-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * DataGrid.cs: when paging is enable, the actual number of items is not
+       the number of items rendered before the postback, but that number times
+       the number of pages. Now we store the page count in the viewstate. Also,
+       as the number might be big, don't allocate an array of objects to fake
+       the collection for the PagedDataSource, but use the new NCollection
+       class instead, which provides cheap (memory wise) enumerator for an
+       arbitrary number of items. Thanks to "Adriano" for the test case.
+
+2005-09-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Xml.cs: the show must go on. Removed a few NotImplemented.
+
+2005-09-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Button.cs: implemented 2.0 RaisePostBackEvent in terms of the
+       existing code in 1.1 (or viceversa). RenderContents() does nothing.
+
+       * DataGrid.cs: changed autoid api.
+
+       * EditCommandColumn.cs: only 'Update' causes validation.
+
+       * TableCell.cs: changed autoid api.  RenderContents checks the number
+       of controls to decide what to do, not the value of Text in the
+       viewstate.
+
+       * TableRow.cs: changed autoid api.
+
+       * BoundColumn.cs: SelectedItem was missing when attaching a DataBind
+       event. When we get an EditItem, we need a TextBox to be created and
+       this one will be the one that gets the event.  Changed
+       ItemDataBinding to deal with a TextBox too.
+
+2005-09-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * PagedDataSource.cs: fix IsLastPage. All tests pass.
+       * DataGrid.cs: InitializePager always add a cell and it's brand new. No
+       need to keep the old one in a field. Now all tests pass here too.
+
+2005-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * PagedDataSource.cs: don't use the properties when they just return a
+       field. Fixed Count when paging is enabled. In GetEnumerator, IList goes
+       before ICollection (otherwise, an IList will always fall under the
+       ICollection case). The enumerator for lists will be empty if 'start'
+       is beyond the list size. All existing tests pass, but one in
+       DataGridTest that fails because of some problem with the paging.
+
+2005-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Style.cs: fix the 2.0 build.
+
+2005-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Style.cs: avoid unnecesary creation of a CssStyleCollection and
+       instead write the style attributes directly to the HtmlTextWriter.
+
+       * CheckBox.cs: adapted to new API.
+
+       * DataGrid.cs: handle null data sources. Fixed the contions that make
+       the table to be added to the Controls collection.
+
+       * Calendar.cs: the table needed an ID and the attributes from the
+       parent. Also don't create the ControlStyleCollection if it has not
+       already been created.
+
+2005-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * DataGrid.cs: handle null data sources. Fixed the contions that make
+       the table to be added to the Controls collection.
+
+2005-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Calendar.cs: TrackViewState should be called upon creation, not on
+       every get_XXX call. Cleanup.
+
+2005-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * DataGrid.cs: fix another test. The ID of the table generated by the
+       datagrid is set to the one on the datagrid if no one set the ID for the
+       table.
+
+2005-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ListControl.cs: this fixes TestValueFieldAndTextFormat from
+       DropDownListTest.
+
+2005-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * FontUnit.cs: use a table for FontSize names, as the X{1,2}.* ones are
+       converted to string as X{1,2}-.*. All FontUnitTests pass now.
+       * Unit.cs: throw a format exception when there's not number or minus
+       sign in the first non-whitespace character.
+
+2005-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ListControl.cs: SelectedIndex/SelectedValue can be set before
+       DataBinding () is called on the control, so we have to keep this values
+       around and use them after the data is read. If both properties are
+       used, they must refer to the same item.
+
+2005-09-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * DataList.cs: fill in the data keys from BaseDataList so that the
+       events can see them. Only assign DataItem when using data binding and
+       nullify it after all events are raised.
+
+2005-09-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * DataList.cs: OnItemCommand() is raised any time OnBubbleEvent is
+       called.
+
+2005-09-23  Sebastien Pouliot  <sebastien@ximian.com> 
+       * Button.cs: For 2.0 don't add the "name" attribute unless there's an 
+       id.
+       * DataGrid.cs: Fix TagKey (table) for 2.0.
+       * DataList.cs: Revert 2.0 specific stuff that was changed in RC.
+       * DropDownList.cs: For 2.0 don't add the "name" attribute unless 
+       there's an id.
+       * ListBox.cs: For 2.0 don't add the "name" attribute unless there's an
+       id.
+       * RoleGroupCollection.cs: Fix "extra" exception in Remove method.
+       * Style.cs: Fixed (2.0) RegisteredCssClass to returns String.Empty 
+       (i.e. not null).
+       * TextBox.cs: For 2.0 don't add the "name" attribute unless there's an
+       id.
+       * TreeView.cs: Added declarative security (Link and Inheritance 
+       demands) for Minimal.
+       * XmlDataSource.cs: Added declarative security (Link and Inheritance
+       demands) for Minimal.
+
+2005-09-23  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * FontUnit.cs: Added, but only for 1.x, declarative security (Link and
+       Inheritance demands) for Minimal.
+       * Label.cs: Added declarative security (Link and Inheritance demands) 
+       for Minimal.
+       * ListItem.cs: Added declarative security (LinkDemands) for Minimal.
+       * ListItemCollection.cs: Added declarative security (LinkDemands) for 
+       Minimal.
+       * MonthChangedEventArgs.cs: Added declarative security (Link and, for 
+       2.0, Inheritance demands) for Minimal.
+       * PagedDataSource.cs: Added declarative security (LinkDemands) for 
+       Minimal.
+       * Panel.cs: Added declarative security (Link and Inheritance demands) 
+       for Minimal.
+       * Repeater.cs: Added declarative security (Link and Inheritance 
+       demands) for Minimal.
+       * RepeatInfo.cs: Added declarative security (LinkDemands) for Minimal.
+       * SelectedDatesCollection.cs: Added declarative security (LinkDemands)
+       for Minimal.
+       * TargetConverter.cs: Added declarative security (Link and Inheritance
+       demands) for Minimal.
+       * Unit.cs: Added, but only for 1.x, declarative security (Link and 
+       Inheritance demands) for Minimal.
+       * ValidatedControlConverter.cs: Added declarative security (Link and 
+       Inheritance demands) for Minimal.
+       * WebColorConverter.cs: Added declarative security (Link and 
+       Inheritance demands) for Minimal.
+       * Xml.cs: Added declarative security (Link and Inheritance demands) 
+       for Minimal.
+       * ValidationSummary.cs: Added declarative security (Link and 
+       Inheritance demands) for Minimal.
+
+2005-09-23  Sebastien Pouliot  <sebastien@ximian.com> 
+
+       * UnitConverter.cs: Remove conversion from Unit (see unit tests).
+
+2005-09-22  Ben Maurer  <bmaurer@ximian.com>
+
+       * BulletedList.cs: Remove the cacheEnabled thing. I was thinking
+       it took O(height) time, not O(1).
+
 2005-09-21  Sebastien Pouliot  <sebastien@ximian.com> 
  
        * CheckBoxList.cs: Fix unit test failure (which matched bug #48802).
        demands) for Minimal. Removed [EditorBrowsable] on ControlStyleCreated 
        property.
 
->>>>>>> .r50334
 2005-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * TableStyle.cs: fixed typo that prevented restoring GridLines from