* 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
* ListView.cs: if data source has pageable data, get total count
from the source's DataSourceCount property. Fixes bug #604053
svn path=/trunk/mcs/; revision=157470
* System.Web.Extensions_test.dll.sources: added
System.Web.UI.WebControls/ListViewPagedDataSourceTest.cs
2009-12-15 Marek Habersack <[email protected]>
* NextPreviousPagerField.cs: HandleEvent doesn't call
DataPager.SetPageProperties with negative start index. Also, if
_totalRowCount is <= 0, new start index is not calculated using
it. Fixes bug #545417
* ListViewPagedDataSource.cs: when server paging is on, data items
are counted from index 0 instead of from the value stored in
StartRowIndex. Fixes bug #545417
* ListView.cs: CreateChildControls doesn't create empty data item
if called with fake data.
When a view reports it can page data, ListViewPagedDataSource
passed to item creation methods has AllowServerPaging set to
true. Fixes bug #545417
When CreateChildControls is called with fake data,
ListViewPagedDataSource has its TotalRowCount property set to the
actual total row count, not zero. Fixes bug #545417
svn path=/trunk/mcs/; revision=148498
* Makefile (TEST_RESOURCE_FILES): added
Test/WebPages/ListView_DynamicControl_09.aspx and
Test/WebPages/ListView_DynamicControl_09.aspx.cs
2009-09-15 Marek Habersack <[email protected]>
* FieldTemplateFactoryTest.cs: implemented tests for
BuildVirtualPath, GetFieldTemplateVirtualPath and PreprocessMode.
2009-09-15 Marek Habersack <[email protected]>
* MetaColumn.cs: DataTypeAttribtue created automatically for
string columns, must be of type MultilineText for long strings.
* FieldTemplateFactory.cs: implemented BuildVirtualPath,
CreateFieldTemplate, GetFieldTemplateVirtualPath, PreprocessMode
and fixed implementation of TemplateFolderVirtualPath.
2009-09-15 Marek Habersack <[email protected]>
* DataTypeAttribute.cs: implemented GetDataTypeName
2009-09-15 Marek Habersack <[email protected]>
* ListView.cs: CreateChildControls calls EnsureDataBound only if
we're not in post-back and if data binding is required.
svn path=/trunk/mcs/; revision=141922
* ListView.cs: if total row count has been retrieved from the
view, don't reset it to the number of items returned from the data
source. Fixes bug #535701
svn path=/trunk/mcs/; revision=141509
* ListView.cs: LoadControlState must call OnTotalRowCountAvailable
after restoring the state, so that all parties subscribed to that
event are given chance to react accordingly.
SetPageProperties should use values stored in
PagePropertiesChangingEventArgs arguments after handler returns.
2009-09-01 Marek Habersack <[email protected]>
* ObjectDataSourceView.cs: ExecuteSelect must call
QueryTotalRowCount after executing the select method (that's what
.NET does)
svn path=/trunk/mcs/; revision=141062
* RouteCollectionTest.cs, RouteTest.cs: added new tests for
GetVirtualPath
2009-06-25 Marek Habersack <[email protected]>
* PatternParser.cs: parameter name lookups must be
case-insensitive.
Null and empty (string) parameters are skipped when building query
part of the action path.
2009-06-25 Marek Habersack <[email protected]>
* LinqDataSource.cs: make ContextType not throw an exception when
ContextTypeName is not set, but rather return a null in that
case.
2009-06-25 Marek Habersack <[email protected]>
* MetaTableTest.cs: new GetVirtualPath tests.
* DynamicDataRouteTest.cs: added tests for route.Defaults
modifications on class init.
* DynamicDataRouteHandlerTest.cs: added
2009-06-25 Marek Habersack <[email protected]>
* MetaTable.cs: Fixes to make tests succeed.
* MetaModel.cs: added the GetDataFieldAttributes method for
retrieving attributes associated with data type/field.
Fixes to make tests succeed.
* MetaColumn.cs: refactoring - use
MetaModel.GetDataFieldAttributes instead of the local version.
* DynamicDataRouteHandler.cs: implemented GetRequestContext,
GetRequestMetaTable.
* DynamicDataRoute.cs: when the Action and Table properties are
set before one of GetVirtualPath or GetRouteData methods are
called for the first time, a check is made whether the Defaults
collection exists and whether it contains entries for Action and
Table. Initialization code makes sure those entries are inserted
into the dictionary in those cases.
svn path=/trunk/mcs/; revision=136875
* ListView.cs: SetPageProperties invoked the
PagePropertiesChanging event with the startRowIndex and
maximumRows parameters reversed. Fixes bugs #481250 and #481252
svn path=/trunk/mcs/; revision=128408
* ListView.cs: use the _correct_ operator when checking whether
selected item index is within the data keys range.
svn path=/trunk/mcs/; revision=120194
* ListView.cs: fixes in DoUpdate and DoDelete - check must be made
that the requested item index is _smaller_ than the number of
keys, not _bigger_.
Enable using the lambda expression in CreateItemsInGroups - the
gmcs bug preventing that was fixed.
svn path=/trunk/mcs/; revision=120165
* ListView.cs: implemented the EditItem property.
Use ConvertEmptyStringToNull in ExtractItemValues.
2008-11-20 Marek Habersack <[email protected]>
* ListViewTest.cs: added tests for several properties.
svn path=/trunk/mcs/; revision=119405
* ListView.cs: added paremeter checks to AddControlToContainer.
CreateInsertItem must instantiate the template and call raise the
ItemCreated event.
Added parameter checks to FindPlaceholder
2008-11-19 Marek Habersack <[email protected]>
* AssemblyInfo.cs: made System.Web.Extensions_test_net_2_0 a
friend assembly.
2008-11-19 Marek Habersack <[email protected]>
* EventRecorder.cs: class is now serializable.
* ListViewTest.cs: use system.web Mainsoft test framework.
ListViewPoker is now able to record events.
Added wrappers for ListView protected methods to ListViewPoker,
Added two simple test ITemplate classes.
Added tests for initial values.
Added tests for all the methods which can be tested in a simple
way, without using a real asp.net page.
Added test for the Edit functionality.
2008-11-19 Marek Habersack <[email protected]>
* CountryCollection.cs, Country.cs: added
2008-11-19 Marek Habersack <[email protected]>
* ListViewTest.aspx, ListViewSort.aspx, Web.mono.config: added
2008-11-19 Marek Habersack <[email protected]>
* Makefile (NUNIT_RESOURCE_FILES): added
* System.Web.Extensions_test.dll.sources: added the system.web
Mainsoft test suite files.
Added new test files.
svn path=/trunk/mcs/; revision=119375
* ListViewContainer.cs: added
* ListView.cs:
Align group with empty items if there are no more data items.
Each group is contained within ListViewContainer.
Calculate the number of groups correctly.
2008-11-18 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
./System.Web.UI.WebControls/ListViewTableCell.cs
Added ./System.Web.Query.Dynamic/DynamicClass.cs and
./System.Web.Query.Dynamic/ParseException.cs
Added ./System.Web.UI.WebControls/ListViewContainer.cs
svn path=/trunk/mcs/; revision=119223
* System.Web.Extensions.dll.sources: added
./System.Web.UI.WebControls/ListViewTableCell.cs
2008-11-18 Marek Habersack <[email protected]>
* ListView.cs: implemented grouping support. With this ListView is
feature complete.
Refactored grouped/non-grouped rendering common code into separate
methods.
FindPlaceholder now looks for the placeholder recursively.
Implemented forgotten UpdateItem method.
* ListViewTableCell.cs: added
svn path=/trunk/mcs/; revision=119125
* 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
* ListView.cs: implemented the sorting capability.
* ListViewSortEventArgs.cs: implemented all the methods and
properties.
svn path=/trunk/mcs/; revision=118107
* 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
* 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
* 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
* LinqDataSource.cs : implement ContextType/ContextTypeName.
* LinqDataSourceView.cs : some ExecuteSelect() implementation.
Cache type members which are from reflection.
svn path=/trunk/mcs/; revision=115363
* 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