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