2009-06-12 Bill Holmes <billholmes54@gmail.com>
[mono.git] / mcs / class / System.Web.Extensions / System.Web.UI.WebControls / ChangeLog
1 2009-03-03  Marek Habersack  <mhabersack@novell.com>
2
3         * ListView.cs: SetPageProperties invoked the
4         PagePropertiesChanging event with the startRowIndex and
5         maximumRows parameters reversed. Fixes bugs #481250 and #481252
6
7         * DataPagerField.cs: GetQueryModeStartRowIndex must return 'true'
8         if in query mode. Fixes bug #481248
9
10 2008-11-28  Marek Habersack  <mhabersack@novell.com>
11
12         * ListView.cs: use the _correct_ operator when checking whether
13         selected item index is within the data keys range.
14
15 2008-11-27  Marek Habersack  <mhabersack@novell.com>
16
17         * ListView.cs: fixes in DoUpdate and DoDelete - check must be made
18         that the requested item index is _smaller_ than the number of
19         keys, not _bigger_.
20         Enable using the lambda expression in CreateItemsInGroups - the
21         gmcs bug preventing that was fixed.
22
23 2008-11-20  Marek Habersack  <mhabersack@novell.com>
24
25         * ListView.cs: implemented the EditItem property.
26         Use ConvertEmptyStringToNull in ExtractItemValues.
27
28 2008-11-19  Marek Habersack  <mhabersack@novell.com>
29
30         * ListView.cs: added paremeter checks to AddControlToContainer.
31         CreateInsertItem must instantiate the template and call raise the
32         ItemCreated event.
33         Added parameter checks to FindPlaceholder
34
35 2008-11-18  Marek Habersack  <mhabersack@novell.com>
36
37         * ListViewContainer.cs: added
38
39         * ListView.cs: implemented grouping support. With this ListView is
40         feature complete.
41         Refactored grouped/non-grouped rendering common code into separate
42         methods.
43         FindPlaceholder now looks for the placeholder recursively.
44         Implemented forgotten UpdateItem method.
45         Align group with empty items if there are no more data items.
46         Each group is contained within ListViewContainer.
47
48         * ListViewTableCell.cs: added
49
50 2008-11-15  Marek Habersack  <mhabersack@novell.com>
51
52         * ListViewInsertEventArgs.cs: implemented the Values property.
53
54         * ListView.cs: CreateChildControls uses the Items collection to
55         store the created items.
56         InsertNewItem triggers page validation if necessary.
57         Part of InsertNewItem code refactored to DoInsert.
58         Implemented handling of the Insert and Select commands.
59
60         * TemplatePagerField.cs: implemented all the code.
61
62         * DataPager.cs: CreatePagerFields now adds the new pager field
63         control before creating data pagers in it and before binding to
64         data. This avoids situation in which the field is parentless.
65         FindPageableItemContainer now properly finds the container if it's
66         placed directly in the Page.
67         {Load,Save}ViewState don't use a Pair anymore, object array is
68         used for compatibility with MS.NET
69
70         * NumericPagerField.cs, NextPreviousPagerField.cs,
71         DataPagerFieldCommandEventArgs.cs: minor refactoring
72
73         * ListViewSelectEventArgs.cs: implemented all the code.
74
75         * ListViewInsertedEventArgs.cs: Values allocates the dictionary on
76         demand now.
77         Initialize all the properties in constructor
78
79         * DataPagerCommandEventArgs.cs: added
80
81         * DataPagerField.cs: implemented IsTrackingViewState
82
83         * DataPagerFieldItem.cs: implements the INonBindingContainer
84         interface.
85
86 2008-11-13  Marek Habersack  <mhabersack@novell.com>
87
88         * ListView.cs: implemented support for Edit, Update and Delete.
89         Implemented ExtractItemValues.
90
91         * ListViewDataItem.cs, ListViewItem.cs: implemented OnBubbleEvent.
92
93         * ListViewDeletedEventArgs.cs, ListViewUpdateEventArgs.cs,
94         ListViewEditEventArgs.cs, ListViewCancelEventArgs.cs,
95         ListViewDeleteEventArgs.cs, ListViewUpdatedEventArgs.cs:
96         implemented all the properties and methods.
97
98         * HelperExtensions.cs: added
99
100 2008-11-06  Marek Habersack  <mhabersack@novell.com>
101
102         * ListView.cs: implemented the sorting capability.
103
104         * ListViewSortEventArgs.cs: implemented all the methods and
105         properties. 
106
107 2008-11-01  Marek Habersack  <mhabersack@novell.com>
108
109         * ListView.cs: do not instantiate the layout template more than
110         necessary.
111
112         * NextPreviousPagerField.cs: moved some common code to the base
113         class (the GetQueryModeStartRowIndex method)
114
115         * DataPager.cs: do not call SetPageProperties more than
116         necessary.
117
118         * NumericPagerField.cs: implemented
119
120         * DataPagerField.cs: added a helper method,
121         GetQueryModeStartRowIndex, to be used by all the concrete
122         implementations to calculate the starting row index in the query
123         mode.
124
125 2008-10-31  Marek Habersack  <mhabersack@novell.com>
126
127         * ListView.cs: use StartRowIndex and MaximumRows properties when
128         calculating the total row count server paging case and when
129         assigning to corresponding properties of the paged data source.
130
131 2008-10-30  Marek Habersack  <mhabersack@novell.com>
132
133         * DataPagerFieldCollection.cs: implemented most of the methods and
134         properties, so that using the DataPager is possible now.
135
136         * PagePropertiesChangingEventArgs.cs: implemented all the methods
137         and properties.
138
139         * ListView.cs: {Save,Load}ControlState now uses constants to index
140         state arrays. Total row count is stored in the control state.
141         CreateChildControls () now uses dummy data to initialize child
142         controls if no items were found after postback.
143         CreateChildControls (IEnumerable, bool) now properly calculates
144         total row count, calls OnTotalRowCountAvailable after creating the
145         child controls and returns the total row count instead of the
146         number of created child controls. This makes pager work
147         correctly.
148         Implemented SetPageProperties () to support paging.
149
150         * NextPreviousPagerField.cs: Correctly order the Next/Previous
151         buttons.
152         When creating buttons, cast the new control properly before
153         assigning properties.
154
155         * TemplatePagerField.cs: added (stub)
156
157         * DataPager.cs: added missing class attributes (ParseChildren,
158         PersistChildren and SupportsEventValidation).
159         {Save,Load}ControlState now use constants to index the state
160         arrays.
161         Properly implemented FindPageableItemContainer - it now looks for
162         the container up the parenthood chain, querying all the naming
163         containers for the named control.
164         SetUpForNewContainer now accepts an additional parameter, so that
165         the SetPageProperties method is called on the container whenever
166         necessary.
167
168         * NumericPagerField.cs: implemented the CreateField method.
169
170         * ListViewPagedDataSource.cs: implemented data source
171         enumerators.
172
173         * DataPagerFieldItem.cs: implemented all the methods and properties.
174
175 2008-10-21  Atsushi Enomoto  <atsushi@ximian.com>
176
177         * LinqDataSource.cs : set ContextTypeName too when ContextType is set.
178
179 2008-10-09  Atsushi Enomoto  <atsushi@ximian.com>
180
181         * LinqDataSource.cs : implement ContextType/ContextTypeName.
182         * LinqDataSourceView.cs : some ExecuteSelect() implementation.
183           Cache type members which are from reflection.
184
185 2008-10-08  Atsushi Enomoto  <atsushi@ximian.com>
186
187         * LinqDataSource.cs, LinqDataSourceView.cs :
188           some more implementation.
189
190 2008-09-30  Marek Habersack  <mhabersack@novell.com>
191
192         * ListView.cs: implemented all the events.
193         CreateChildControls works with non-ICollection data sources now.
194         CreateItemsWithoutGroups now counts items placed in the container
195         and stores the container in a field, so that RemoveItems can
196         properly delete the child controls.
197         Implemented the RemoveItems method.
198         Implemented Load/SaveControlState.
199         Implemented LoadViewState.
200         Implemented OnBubbleEvent.
201         Implemented all the On* methods.
202
203         * ListViewCommandEventArgs.cs: implemented the CommandSource and
204         Item properties.
205
206         * ListViewItemEventArgs.cs: implemented the Item property.
207
208 2008-09-18  Atsushi Enomoto  <atsushi@ximian.com>
209
210         * LinqDataSource.cs, LinqDataSourceView.cs
211           LinqDataSourceContextEventArgs.cs
212           LinqDataSourceDeleteEventArgs.cs
213           LinqDataSourceDisposeEventArgs.cs
214           LinqDataSourceInsertEventArgs.cs
215           LinqDataSourceSelectEventArgs.cs
216           LinqDataSourceStatusEventArgs.cs
217           LinqDataSourceUpdateEventArgs.cs : easy implementation parts.
218
219 2008-09-18  Atsushi Enomoto  <atsushi@ximian.com>
220
221         * LinqDataSource.cs, LinqDataSourceView.cs
222           LinqDataSourceContextEventArgs.cs
223           LinqDataSourceDeleteEventArgs.cs
224           LinqDataSourceDisposeEventArgs.cs
225           LinqDataSourceInsertEventArgs.cs
226           LinqDataSourceSelectEventArgs.cs
227           LinqDataSourceStatusEventArgs.cs
228           LinqDataSourceUpdateEventArgs.cs
229           LinqDataSourceValidationException.cs : stubbed out.
230
231 2008-05-08  Marek Habersack  <mhabersack@novell.com>
232
233         * DataPager.cs, DataPager.cs, DataPagerFieldCollection.cs,
234         DataPagerFieldCommandEventArgs.cs, DataPagerField.cs,
235         DataPagerFieldItem.cs, InsertItemPosition.cs,
236         IPageableItemContainer.cs, ListViewCancelEventArgs.cs,
237         ListViewCancelMode.cs, ListViewCommandEventArgs.cs, ListView.cs,
238         ListViewDataItem.cs, ListViewDeletedEventArgs.cs,
239         ListViewDeleteEventArgs.cs, ListViewEditEventArgs.cs,
240         ListViewInsertedEventArgs.cs, ListViewInsertEventArgs.cs,
241         ListViewItem.cs, ListViewItemEventArgs.cs, ListViewItemType.cs,
242         ListViewPagedDataSource.cs, ListViewSelectEventArgs.cs,
243         ListViewSortEventArgs.cs, ListViewTableRow.cs,
244         ListViewUpdatedEventArgs.cs, ListViewUpdateEventArgs.cs,
245         NextPreviousPagerField.cs, NumericPagerField.cs, PageEventArgs.cs,
246         PagePropertiesChangingEventArgs.cs, TemplatePagerField.cs:
247         added. NOTE: this is code in progress! It is not fully implemented
248         and usable, please do not file bug reports for the code - patches
249         are gladly accepted :)
250