7 Commits
Author SHA1 Message Date
Alexander Köplinger 2a978a42f1 [bcl] Remove NET_3_5 defines from class libs 2015-01-21 17:59:27 +01:00
Marek Habersack e179e50323 2010-06-19 Marek Habersack <[email protected]>
* DataPager.cs: when rendering the ID attribute, use ClientID

    2010-06-18  Marek Habersack  <[email protected]>

    	* NumericPagerField.cs: CreateDataPagers outputs correct page
    	number in query mode. Fixes bug #615315
    	Rendering changes to match .NET

    	* DataPagerField.cs: if query string has been handled and query
    	mode is in effect, return true. Fixes bug #615315

svn path=/trunk/mcs/; revision=159161
2010-06-18 23:01:39 +00:00
Marek Habersack 3486292d5a 2008-11-15 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	System.Web.UI.WebControls/DataPagerCommandEventArgs.cs

2008-11-15  Marek Habersack  <[email protected]>

	* ListViewInsertEventArgs.cs: implemented the Values property.

	* ListView.cs: CreateChildControls uses the Items collection to
	store the created items.
	InsertNewItem triggers page validation if necessary.
	Part of InsertNewItem code refactored to DoInsert.
	Implemented handling of the Insert and Select commands.

	* TemplatePagerField.cs: implemented all the code.

	* DataPager.cs: CreatePagerFields now adds the new pager field
	control before creating data pagers in it and before binding to
	data. This avoids situation in which the field is parentless.
	FindPageableItemContainer now properly finds the container if it's
	placed directly in the Page.
	{Load,Save}ViewState don't use a Pair anymore, object array is
	used for compatibility with MS.NET

	* NumericPagerField.cs, NextPreviousPagerField.cs,
	DataPagerFieldCommandEventArgs.cs: minor refactoring

	* ListViewSelectEventArgs.cs: implemented all the code.

	* ListViewInsertedEventArgs.cs: Values allocates the dictionary on
	demand now.
	Initialize all the properties in constructor

	* DataPagerCommandEventArgs.cs: added

	* DataPagerField.cs: implemented IsTrackingViewState

	* DataPagerFieldItem.cs: implements the INonBindingContainer
	interface.

svn path=/trunk/mcs/; revision=118918
2008-11-15 04:00:05 +00:00
Marek Habersack 74c1e61ff6 Metadata updates
svn path=/trunk/mcs/; revision=118248
2008-11-08 00:20:04 +00:00
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 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
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