2
0

ChangeLog 11 KB

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