* PagedDataSource.cs: patch by Suresh Kumar that makes PageCount return
1 when there's a datasource and 0 pages. Closes bug #73864.
svn path=/trunk/mcs/; revision=45086
* DataListItem.cs:
* GridViewRow.cs:
* DataGridItem.cs:
* RepeaterItem.cs:
* FormView.cs:
* MenuItemTemplateContainer.cs:
* DetailsView.cs: Track changes in the IDataItemContainer interface.
* CommandField.cs: Added CausesValidation property. Set that
property value to all buttons of the field.
* SqlDataSourceView.cs:
* CollectionDataSource.cs:
* XmlDataSourceView.cs: Properly initialize the base class.
* SiteMapDataSource.cs:
* SiteMapHierarchicalDataSourceView.cs:
* SiteMapNodeItem.cs:
* SiteMapDataSourceView.cs:
* SiteMapPath.cs: Mostly implemented.
* HierarchicalDataBoundControl.cs: Always bind the control when the
page is loaded for the first time.
* TreeView.cs: Properly bind the control when loaded from a callback.
svn path=/trunk/mcs/; revision=45062
* WizardStepBase.cs:
* WizardStep.cs: Added missing attributes.
* Wizard.cs: Implemented missing methods and properties. It can now
be considered feature complete.
svn path=/trunk/mcs/; revision=44499
* DataGrid.cs: cleanup in AutoCreateColumns. Don't throw at the end of
the method if the data source was en empty IEnumerator. Fixes
bug #74804.
svn path=/trunk/mcs/; revision=44355
* TreeNode.cs:
* TreeView.cs:
* Menu.cs: Implemented some new properties from beta 2.
* DataControlButton.cs: Render the ControlStyle if it
is not empty.
* UnitConverter.cs:
* FontUnitConverter.cs: Improved the conversion to InstanceDescriptor.
It will now generate an object creation, instead of a Parse call.
* GridViewCommandEventArgs.cs: Added missing property.
* SubMenuStyleCollection.cs: This class is not sealed.
* MultiView.cs: Set Visible=false to all views that are not
shown. This ensures that it's view state is saved.
* BaseDataBoundControl.cs:
* GridViewDeletedEventArgs.cs: Minor api fixes.
* FormViewDeleteEventArgs.cs:
* DetailsViewDeletedEventArgs.cs:
* ListControl.cs: Fix warnings.
* CircleHotSpot.cs
* HotSpot.cs
* HotSpotCollection.cs
* ImageMap.cs
* PolygonHotSpot.cs
* RectangleHotSpot.cs
* WizardStepCollection.cs : Implemented.
* WizardStep.cs
* WizardStepBase.cs
* Wizard.cs: Initial implementation.
svn path=/trunk/mcs/; revision=44148
* DataControlField.cs:
* CommandField.cs:
* GridView.cs:
* FormView.cs:
* DataControlCommands.cs:
* DetailsView.cs: Use constants to identify commands.
* SubMenuStyle.cs: Use Unit instead of int for padding.
* SubMenuStyleCollection.cs: Implemented.
* DataList.cs:
* Menu.cs: Added some missing methods and properties.
* Literal.cs:
* DataGridPagerStyle.cs: Fixed default value attributes.
* ListControl.cs: Implemented IEditableTextControl interface.
* MenuItemBinding.cs: Added Selectable property.
* CustomValidator.cs: removed interface.
* MenuItem.cs: Added support for custom binding.
* DropDownList.cs: Moved text properties to base class.
svn path=/trunk/mcs/; revision=44009
* Calendar.cs: when the day is active, modify the text of the literal
control that holds the number, not the text of the TableCell. Also call
OnDayRender before updating that text. Fixes bug #74718.
svn path=/trunk/mcs/; revision=43581
* FormViewDeleteEventArgs.cs:
* FormViewInsertEventArgs.cs:
* FormViewUpdateEventArgs.cs:
* FormViewDeletedEventArgs.cs:
* FormViewUpdatedEventArgs.cs:
* FormViewInsertedEventArgs.cs: Implemented some missing properties.
* LinkButton.cs:
* IButtonControl.cs:
* Button.cs: Removed SoftKey property.
* CheckBox.cs: Don't try to load post back data if the control
is disabled.
* ImageField.cs:
* AutoGeneratedField.cs:
* DataControlField.cs:
* CommandField.cs:
* ButtonFieldBase.cs:
* BoundField.cs:
* CheckBoxField.cs:
* TemplateField.cs:
* ButtonField.cs: Don't bind fields in Insert state.
Implemented CreateField and CopyProperties.
* GridView.cs:
* DetailsView.cs: Removed some unneeded interfaces. Don't
generate the field rows if there are no items in the data source.
Don't get the current keys until the whole control has been
bound.
* DetailsViewInsertedEventArgs.cs:
* DataBoundControl.cs:
* ObjectDataSourceView.cs: Made some methods private.
* MenuItemStyle.cs:
* Menu.cs: Changed some properties from int to Unit.
* DataControlButton.cs: javascript prefix is needed when raising
the postback event from a link.
* PagedDataSource.cs: Some fixes in Count and IsLastPage properties.
The result was wrong when the total data source count was 0.
* FormView.cs: Implemented.
* FormViewRow.cs: Implemented.
* Literal.cs:
* Localize.cs: Fixed base interface.
* BaseDataBoundControl.cs: In DataBind() call the base class
DataBind method, so the binding context is properly set.
svn path=/trunk/mcs/; revision=43410
* DetailsView.cs: Implemented support for Insert operation.
Added header and footer templates. Added missing style
properties.
* ObjectDataSourceView.cs: Use ParameterCollection.GetValues
to get filter values. Other minor fixes.
* CommandField.cs: Properly render the Insert and New buttons.
* ObjectDataSource.cs: Update the parameter collections after
the page is loaded. This will fire the ParameterChanged event
if needed.
* DataBoundControl.cs: The OnDataSourceViewChanged method
is called when the view changes, not when the datasource
changes.
* DetailsViewInsertedEventArgs.cs:
* DetailsViewInsertEventArgs.cs: Implement Values property.
* ImageField.cs:
* AutoGeneratedField.cs
* BoundField.cs:
* CheckBoxField.cs:
Take into account the Insert mode.
* ParameterCollection.cs: Implemented UpdateValues and fixed
GetValues (values can't be cached because can change).
* Parameter.cs: Detect value changes in GetValue, and fire
the change event if needed. Removed unused ParameterValue
property. Other fixes.
svn path=/trunk/mcs/; revision=42997
* ButtonField.cs: Get data item properties using TypeDescriptor.
Made OnDataBindField private.
* ObjectDataSourceView.cs: Implemented support for Delete and
Insert operations, support for filtering and sorting,
conflict detection, etc. It's now complete.
* ObjectDataSource.cs: Completed most of functionality. Only
caching support is missing.
* ObjectDataSourceFilteringEventHandler.cs: New event handler.
* TreeNode.cs: Get data item properties using TypeDescriptor.
* PagerSettings.cs: Flush.
* ObjectDataSourceFilteringEventArgs.cs: New event args.
* GridView.cs: Get data item properties using TypeDescriptor
and cache them. Properly set descending order in the sort
expression. In UpdateRow, make sure we get the old values
before the control is bound again.
* ImageField.cs: Implemented.
* AutoGeneratedField.cs: Initialize the field's sort
expression in the constructor.
* MenuItem.cs: Get data item properties using TypeDescriptor.
* BoundField.cs: Get data item properties using TypeDescriptor.
* CheckBoxField.cs: Added missing attributes.
* TemplateField.cs: Implemented.
svn path=/trunk/mcs/; revision=42646
* UnitConverter.cs:
* FontUnitConverter.cs: fixed ConvertTo to work with target
InstanceDescriptor and value as a string.
* Unit.cs: culture might be null.
Fixes bug #74431.
svn path=/trunk/mcs/; revision=42621
* Button.cs, ImageButton.cs: Interpret PostBackOptions.ClientSubmit
correctly.
* CommandField.cs: Mostly implemented.
* Menu.cs: Use callback methods moved to ClientScriptManager.
* DataControlButton.cs: Internal control used to implement buttons
for navigating in data bound controls.
* DataControlField.cs, PagerSettings.cs: Use the new DataControlButton
to render the column headers.
* CheckBox.cs, RadioButton.cs, BulletedList.cs, TextBox.cs
DropDownList.cs, Calendar.cs, ListBox.cs, LinkButton.cs, TreeView.cs:
Don't use Page.GetPostBackClientEvent
since it is deprecated in 2.0.
* GridView.cs: Implemented some several interfaces.
Implemented support client sorting and page navigation (using callbacks).
Implemented the autogenerated command column using the new CommandField
class.
* ButtonFieldBase.cs: Implemented.
* GridView.js: New helper script to support client side sorting and
paging in the grid view.
svn path=/trunk/mcs/; revision=41698
* XmlDataSourceView.cs: ExecuteSelect now returns a list of
XmlDataSourceNodeDescriptor instead of a list of nodes. In this way
it is possible to query for properties fore each data item.
* Menu.cs, TreeView.cs: Make sure that objects are correctly created
when loading its view state.
* DataControlField.cs: Implement properties using a StateBag.
* XmlDataSourcePropertyDescriptor.cs: Implemented.
* PagerSettings.cs: Mostly implemented.
* AccessDataSourceView.cs, AccessDataSource.cs: Added security attribute.
* DataBoundControl.cs: Added null check.
* GridView.cs: Initial implementation.
* CompositeDataBoundControl.cs: Implemented.
* BoundField.cs: Initial implementation.
* GridViewRowCollection.cs: Initial implementation.
* DataControlFieldCollection.cs: Initial implementation.
* DataControlFieldCell.cs: Fixed control tag.
* GridViewRow: Initial implementation.
* XmlDataSourceNodeDescriptor.cs: Implemented.
svn path=/trunk/mcs/; revision=41191
* WebControl.cs: correctly use TagName in RenderBeginTag, ie, if TagKey
is zero, use the TagName no matter its value. Fixes bug #72415.
svn path=/trunk/mcs/; revision=41125
* HyperLinkColumn.cs, Label.cs: Added missing 2.0 properties.
* RadioButton.cs: Added missing 2.0 methods.
* ListItem.cs: Added Enabled property.
* MailMessageEventArgs.cs: Use the correct message class.
* ListControl.cs: Implemented missing properties and support for
control state. Implemented base RenderContents method.
* Image.cs: Implemented DescriptionUrl and GenerateEmptyAlternateText
properties.
* BaseCompareValidator.cs: Implemented methods that support conditional
use of the invariant culture.
* DataBoundControl.cs: Set RequiresDataBinding to true in OnLoad.
* SqlDataSourceCommandEventArgs.cs, SqlDataSourceStatusEventArgs.cs:
It takes a DbCommand instead of a IDbCommand.
* GridViewSortEventArgs.cs: Added SortDirection property.
* TextBox.cs, CheckBoxList.cs: Added protected version of
IPostBackDataHandler methods.
* RadioButtonList.cs: Added protected version of
IPostBackDataHandler and IRepeatInfoUser methods.
* Repeater.cs: Updated some method names.
* DropDownList.cs: Added protected version of
IPostBackDataHandler methods. Reuse RenderContents from base class.
* RepeaterItem.cs, Localize.cs, Literal.cs: Fix inheritance.
* GridViewUpdatedEventArgs.cs: Fix typo.
* ListBox.cs: Added protected version of IPostBackDataHandler methods.
Reuse RenderContents from base class.
* BaseDataBoundControl.cs: Several fixes.
* ImageButton.cs, LinkButton.cs: Implemented several 2.0 properties.
svn path=/trunk/mcs/; revision=40772
* Button.cs: Use validation group when validating page.
* XmlDataSourceView.cs: Implemented ExecuteSelect.
* Menu.cs: Minor fix.
* CheckBox.cs: Added 2.0 properties and methods.
* BaseDataList.cs: Always databind the control if view state
is not enabled.
* DataList.cs: In 2.0, use control state to save the selected index.
* DetailsViewUpdatedEventArgs.cs: Fix typo.
* CustomValidator.cs: Implement IStaticTextControl interface.
* CheckBoxList.cs: Added missing 2.0 methods.
* DropDownList.cs: Added missing 2.0 methods. Implemented ITextControl
interface.
* XmlDataSource.cs: Return childs of DocumentElement, not the root
document.
* DayRenderEventArgs.cs, CompareValidator.cs, DataListItem.cs:
Implemented 2.0 API.
svn path=/trunk/mcs/; revision=40379
* CheckBox.cs: when rendering the input tag inside a span tag, keep the
attributes that are meant to be in the input tag in their place.
svn path=/trunk/mcs/; revision=39271
* Menu.cs: Implemented most of missing properties. Added support for
item templates. Implemented menu scrolling.
* MenuItemBinding.cs: Implemented most of missing properties.
* MenuItem.cs: Implemented most of missing properties.
* Menu.js: Implemented scrolling and menu reposition into screen.
* MenuItemTemplateContainer.cs: Implemented.
* SubMenuStyle.cs: Implemented.
svn path=/trunk/mcs/; revision=38620
* Style.cs: Implemented RegisteredCssClass property. Added
CopyTextStylesFrom method, which copies styles that only apply to text.
* Menu.cs, Menu.js: Added hover style support. Define all menu styles
in the page stylesheet. Added support for ItemSpacing property.
* MenuItemStyle.cs: Implemented FillStyleAttributes method.
svn path=/trunk/mcs/; revision=37993
* Style.cs: Generate styles using a CssStyleCollection, so the code can
be reused for the 2.0 FillStyleAttributes method.
* Menu.cs: Implemented more properties and events. Rendering is very
complete now.
* MenuItem.cs: Added PopOutImageUrl property.
* Menu.js: More work on submenu management.
svn path=/trunk/mcs/; revision=37887
* Menu.cs: Implemented basic rendering. Added some missing properties.
* MenuItem.cs: Improved implementation of Depth.
* Unit.cs: Added serializable attribute.
* TreeView.cs: Moved GetScriptLiteral method to ClientScriptManager,
so it can be reused.
* Menu.js: New script to support he Menu control.
svn path=/trunk/mcs/; revision=37584
* TreeNodeBindingCollection.cs, TreeNodeStyleCollection.cs:
Implemented SetDirtyObject.
* Style.cs: Implemented SetDirty().
* TreeNodeBinding.cs: Added missing attributes. Implemented SetDirty().
* TreeNode.cs: Added missing attributes added support for
PopulateOnDemand. Added some missing property bindings.
* TreeNodeCollection.cs: Several minor fixes. SetDirty must be called
to newly added elements to make sure al new data is saved.
* TreeView.js: Implemented support for client population of nodes.
* TreeNodeStyle.cs: Added missing attributes.
* TreeView.cs: Implemented support for PopulateNodesFromClient and
PopulateOnDemand. Improved rendering.
svn path=/trunk/mcs/; revision=36946