Commit Graph
10 Commits
Author SHA1 Message Date
Marek Habersack 2deb953d44 2008-11-01 Marek Habersack <[email protected]>
* ListView.cs: do not instantiate the layout template more than
	necessary.

	* NextPreviousPagerField.cs: moved some common code to the base
	class (the GetQueryModeStartRowIndex method)

	* DataPager.cs: do not call SetPageProperties more than
	necessary.

	* NumericPagerField.cs: implemented

	* DataPagerField.cs: added a helper method,
	GetQueryModeStartRowIndex, to be used by all the concrete
	implementations to calculate the starting row index in the query
	mode.

svn path=/trunk/mcs/; revision=117600
2008-11-01 02:17:03 +00:00
Marek Habersack 2809b0c7ff 2008-10-31 Marek Habersack <[email protected]>
* ListView.cs: use StartRowIndex and MaximumRows properties when
	calculating the total row count server paging case and when
	assigning to corresponding properties of the paged data source.

svn path=/trunk/mcs/; revision=117521
2008-10-30 23:51:55 +00:00
Marek Habersack d4b9426973 2008-10-30 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	./System.Web.UI.WebControls/TemplatePagerField.cs

	* System.Web.Extensions_test.dll.sources: added
	System.Web.UI.WebControls/EventRecorder.cs,
	System.Web.UI.WebControls/ListViewTest.cs,
	System.Web.UI.WebControls/DataPagerFieldCollectionTest.cs

2008-10-30  Marek Habersack  <[email protected]>

	* DataPagerFieldCollectionTest.cs: created. Some basic tests for
	DataPagerFieldCollection

	* EventRecorder.cs: created. A helper class for tests.

	* ListViewTest.cs: created. Some basic test for ListView.

2008-10-30  Marek Habersack  <[email protected]>

	* DataPagerFieldCollection.cs: implemented most of the methods and
	properties, so that using the DataPager is possible now.

	* PagePropertiesChangingEventArgs.cs: implemented all the methods
	and properties.

	* ListView.cs: {Save,Load}ControlState now uses constants to index
	state arrays. Total row count is stored in the control state.
	CreateChildControls () now uses dummy data to initialize child
	controls if no items were found after postback.
	CreateChildControls (IEnumerable, bool) now properly calculates
	total row count, calls OnTotalRowCountAvailable after creating the
	child controls and returns the total row count instead of the
	number of created child controls. This makes pager work
	correctly.
	Implemented SetPageProperties () to support paging.

	* NextPreviousPagerField.cs: Correctly order the Next/Previous
	buttons.
	When creating buttons, cast the new control properly before
	assigning properties.

	* TemplatePagerField.cs: added (stub)

	* DataPager.cs: added missing class attributes (ParseChildren,
	PersistChildren and SupportsEventValidation).
	{Save,Load}ControlState now use constants to index the state
	arrays.
	Properly implemented FindPageableItemContainer - it now looks for
	the container up the parenthood chain, querying all the naming
	containers for the named control.
	SetUpForNewContainer now accepts an additional parameter, so that
	the SetPageProperties method is called on the container whenever
	necessary.

	* NumericPagerField.cs: implemented the CreateField method.

	* ListViewPagedDataSource.cs: implemented data source
	enumerators.

	* DataPagerFieldItem.cs: implemented all the methods and properties.

svn path=/trunk/mcs/; revision=117479
2008-10-30 14:46:35 +00:00
Atsushi Eno 11eb29c037 2008-10-21 Atsushi Enomoto <[email protected]>
* LinqDataSource.cs : set ContextTypeName too when ContextType is set.


svn path=/trunk/mcs/; revision=116622
2008-10-21 15:52:16 +00:00
Atsushi Eno 3d0520e5eb 2008-10-09 Atsushi Enomoto <[email protected]>
* LinqDataSource.cs : implement ContextType/ContextTypeName.
	* LinqDataSourceView.cs : some ExecuteSelect() implementation.
	  Cache type members which are from reflection.


svn path=/trunk/mcs/; revision=115363
2008-10-09 17:37:35 +00:00
Atsushi Eno 30dfcbfa2d 2008-10-08 Atsushi Enomoto <[email protected]>
* Makefile: add reference to S.D.Linq.

	* LinqDataSource.cs, LinqDataSourceView.cs :
	  some more implementation.


svn path=/trunk/mcs/; revision=115240
2008-10-08 16:17:05 +00:00
Marek Habersack d84f0b5119 2008-09-30 Marek Habersack <[email protected]>
* ListView.cs: implemented all the events.
	CreateChildControls works with non-ICollection data sources now.
	CreateItemsWithoutGroups now counts items placed in the container
	and stores the container in a field, so that RemoveItems can
	properly delete the child controls.
	Implemented the RemoveItems method.
	Implemented Load/SaveControlState.
	Implemented LoadViewState.
	Implemented OnBubbleEvent.
	Implemented all the On* methods.

	* ListViewCommandEventArgs.cs: implemented the CommandSource and
	Item properties.

	* ListViewItemEventArgs.cs: implemented the Item property.

svn path=/trunk/mcs/; revision=114477
2008-09-30 13:38:22 +00:00
Atsushi Eno 45bbe0a186 2008-09-18 Atsushi Enomoto <[email protected]>
* LinqDataSource.cs, LinqDataSourceView.cs
	  LinqDataSourceContextEventArgs.cs
	  LinqDataSourceDeleteEventArgs.cs
	  LinqDataSourceDisposeEventArgs.cs
	  LinqDataSourceInsertEventArgs.cs
	  LinqDataSourceSelectEventArgs.cs
	  LinqDataSourceStatusEventArgs.cs
	  LinqDataSourceUpdateEventArgs.cs : easy implementation parts.


svn path=/trunk/mcs/; revision=113405
2008-09-18 12:32:40 +00:00
Atsushi Eno 5bd356d8b0 Added LinqDataSource stuff (stubs).
svn path=/trunk/mcs/; revision=113393
2008-09-18 07:22:17 +00:00
Marek Habersack c254be099a 2008-05-08 Marek Habersack <[email protected]>
* DataPager.cs, DataPager.cs, DataPagerFieldCollection.cs,
	DataPagerFieldCommandEventArgs.cs, DataPagerField.cs,
	DataPagerFieldItem.cs, InsertItemPosition.cs,
	IPageableItemContainer.cs, ListViewCancelEventArgs.cs,
	ListViewCancelMode.cs, ListViewCommandEventArgs.cs, ListView.cs,
	ListViewDataItem.cs, ListViewDeletedEventArgs.cs,
	ListViewDeleteEventArgs.cs, ListViewEditEventArgs.cs,
	ListViewInsertedEventArgs.cs, ListViewInsertEventArgs.cs,
	ListViewItem.cs, ListViewItemEventArgs.cs, ListViewItemType.cs,
	ListViewPagedDataSource.cs, ListViewSelectEventArgs.cs,
	ListViewSortEventArgs.cs, ListViewTableRow.cs,
	ListViewUpdatedEventArgs.cs, ListViewUpdateEventArgs.cs,
	NextPreviousPagerField.cs, NumericPagerField.cs, PageEventArgs.cs,
	PagePropertiesChangingEventArgs.cs, TemplatePagerField.cs:
	added. NOTE: this is code in progress! It is not fully implemented
	and usable, please do not file bug reports for the code - patches
	are gladly accepted :)

svn path=/trunk/mcs/; revision=102821
2008-05-08 17:36:56 +00:00