1 2010-06-19 Marek Habersack <mhabersack@novell.com>
3 * DataPager.cs: when rendering the ID attribute, use ClientID
5 2010-06-18 Marek Habersack <mhabersack@novell.com>
7 * NumericPagerField.cs: CreateDataPagers outputs correct page
8 number in query mode. Fixes bug #615315
9 Rendering changes to match .NET
11 * DataPagerField.cs: if query string has been handled and query
12 mode is in effect, return true. Fixes bug #615315
14 2010-05-18 Marek Habersack <mhabersack@novell.com>
16 * ListView.cs: if data source has pageable data, get total count
17 from the source's DataSourceCount property. Fixes bug #604053
19 2009-12-15 Marek Habersack <mhabersack@novell.com>
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
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
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
39 2009-09-15 Marek Habersack <mhabersack@novell.com>
41 * ListView.cs: CreateChildControls calls EnsureDataBound only if
42 we're not in post-back and if data binding is required.
44 2009-09-08 Marek Habersack <mhabersack@novell.com>
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
50 2009-09-01 Marek Habersack <mhabersack@novell.com>
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.
58 2009-06-25 Marek Habersack <mhabersack@novell.com>
60 * LinqDataSource.cs: make ContextType not throw an exception when
61 ContextTypeName is not set, but rather return a null in that
64 2009-03-03 Marek Habersack <mhabersack@novell.com>
66 * ListView.cs: SetPageProperties invoked the
67 PagePropertiesChanging event with the startRowIndex and
68 maximumRows parameters reversed. Fixes bugs #481250 and #481252
70 * DataPagerField.cs: GetQueryModeStartRowIndex must return 'true'
71 if in query mode. Fixes bug #481248
73 2008-11-28 Marek Habersack <mhabersack@novell.com>
75 * ListView.cs: use the _correct_ operator when checking whether
76 selected item index is within the data keys range.
78 2008-11-27 Marek Habersack <mhabersack@novell.com>
80 * ListView.cs: fixes in DoUpdate and DoDelete - check must be made
81 that the requested item index is _smaller_ than the number of
83 Enable using the lambda expression in CreateItemsInGroups - the
84 gmcs bug preventing that was fixed.
86 2008-11-20 Marek Habersack <mhabersack@novell.com>
88 * ListView.cs: implemented the EditItem property.
89 Use ConvertEmptyStringToNull in ExtractItemValues.
91 2008-11-19 Marek Habersack <mhabersack@novell.com>
93 * ListView.cs: added paremeter checks to AddControlToContainer.
94 CreateInsertItem must instantiate the template and call raise the
96 Added parameter checks to FindPlaceholder
98 2008-11-18 Marek Habersack <mhabersack@novell.com>
100 * ListViewContainer.cs: added
102 * ListView.cs: implemented grouping support. With this ListView is
104 Refactored grouped/non-grouped rendering common code into separate
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.
111 * ListViewTableCell.cs: added
113 2008-11-15 Marek Habersack <mhabersack@novell.com>
115 * ListViewInsertEventArgs.cs: implemented the Values property.
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.
123 * TemplatePagerField.cs: implemented all the code.
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
133 * NumericPagerField.cs, NextPreviousPagerField.cs,
134 DataPagerFieldCommandEventArgs.cs: minor refactoring
136 * ListViewSelectEventArgs.cs: implemented all the code.
138 * ListViewInsertedEventArgs.cs: Values allocates the dictionary on
140 Initialize all the properties in constructor
142 * DataPagerCommandEventArgs.cs: added
144 * DataPagerField.cs: implemented IsTrackingViewState
146 * DataPagerFieldItem.cs: implements the INonBindingContainer
149 2008-11-13 Marek Habersack <mhabersack@novell.com>
151 * ListView.cs: implemented support for Edit, Update and Delete.
152 Implemented ExtractItemValues.
154 * ListViewDataItem.cs, ListViewItem.cs: implemented OnBubbleEvent.
156 * ListViewDeletedEventArgs.cs, ListViewUpdateEventArgs.cs,
157 ListViewEditEventArgs.cs, ListViewCancelEventArgs.cs,
158 ListViewDeleteEventArgs.cs, ListViewUpdatedEventArgs.cs:
159 implemented all the properties and methods.
161 * HelperExtensions.cs: added
163 2008-11-06 Marek Habersack <mhabersack@novell.com>
165 * ListView.cs: implemented the sorting capability.
167 * ListViewSortEventArgs.cs: implemented all the methods and
170 2008-11-01 Marek Habersack <mhabersack@novell.com>
172 * ListView.cs: do not instantiate the layout template more than
175 * NextPreviousPagerField.cs: moved some common code to the base
176 class (the GetQueryModeStartRowIndex method)
178 * DataPager.cs: do not call SetPageProperties more than
181 * NumericPagerField.cs: implemented
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
188 2008-10-31 Marek Habersack <mhabersack@novell.com>
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.
194 2008-10-30 Marek Habersack <mhabersack@novell.com>
196 * DataPagerFieldCollection.cs: implemented most of the methods and
197 properties, so that using the DataPager is possible now.
199 * PagePropertiesChangingEventArgs.cs: implemented all the methods
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
211 Implemented SetPageProperties () to support paging.
213 * NextPreviousPagerField.cs: Correctly order the Next/Previous
215 When creating buttons, cast the new control properly before
216 assigning properties.
218 * TemplatePagerField.cs: added (stub)
220 * DataPager.cs: added missing class attributes (ParseChildren,
221 PersistChildren and SupportsEventValidation).
222 {Save,Load}ControlState now use constants to index the state
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
231 * NumericPagerField.cs: implemented the CreateField method.
233 * ListViewPagedDataSource.cs: implemented data source
236 * DataPagerFieldItem.cs: implemented all the methods and properties.
238 2008-10-21 Atsushi Enomoto <atsushi@ximian.com>
240 * LinqDataSource.cs : set ContextTypeName too when ContextType is set.
242 2008-10-09 Atsushi Enomoto <atsushi@ximian.com>
244 * LinqDataSource.cs : implement ContextType/ContextTypeName.
245 * LinqDataSourceView.cs : some ExecuteSelect() implementation.
246 Cache type members which are from reflection.
248 2008-10-08 Atsushi Enomoto <atsushi@ximian.com>
250 * LinqDataSource.cs, LinqDataSourceView.cs :
251 some more implementation.
253 2008-09-30 Marek Habersack <mhabersack@novell.com>
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.
266 * ListViewCommandEventArgs.cs: implemented the CommandSource and
269 * ListViewItemEventArgs.cs: implemented the Item property.
271 2008-09-18 Atsushi Enomoto <atsushi@ximian.com>
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.
282 2008-09-18 Atsushi Enomoto <atsushi@ximian.com>
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.
294 2008-05-08 Marek Habersack <mhabersack@novell.com>
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 :)