* Various places: make sure that the DefaultValue matches the
type. Thanks to Michael for pointing this out.
In future audits, you might want to use the following awk command:
awk '/DefaultValue/ { v=$0; looking = 1; } /public/ && looking &&
!/string/ && !/ int / && !/ bool / { print FILENAME; print v;
print $0; looking = 0; } /public/ && looking { looking = 0; } '
*.cs
The above skips bools, strings and ints as those were fine as we
set them. The bug was on the other ones.
svn path=/trunk/mcs/; revision=49274
* 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
* 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
* 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
* 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
* 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