ChangeLog 11 KB

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