NET_4_0 is always defined now, so the ifdefs are redundant.
I verified the libs are exactly the same after this change, so this is effectively a no-op.
When one clicks on the plus sign in the tree with populate on demand active and then clicks on the node's
text, the resulting post back is a plain one, not a callback. In this case all the nodes need to be repopulated
or they will vanish from the rendering. At the same time, the nodes have to be simply marked as populated when
a post back in callback mode is processed.
Disabled one test and a small chunk of code in TreeView.RenderNode - it needs more investigation (nothing critical
though)
* MenuRenderingMode.cs: added (4.0)
* Menu.cs: added the IncludeStyleBlock and RenderingMode 4.0
properties (not used in the code yet).
svn path=/trunk/mcs/; revision=160723
* Wizard.cs: made rendering 100% compliant with .NET (button IDs,
2.0+)
Implemented LayoutTemplate (4.0+)
* LinkButton.cs: render id first
* CreateUserWizard.cs: CreateUserNavigationContainer.UpdateState
doesn't add a previous button if we're on the first step.
svn path=/trunk/mcs/; revision=160657
* FormViewRow.cs: added internal property RenderJustCellContents
which makes the control render only its children (4.0)
* FormView.cs: implemented RenderOuterTable property and the
ModifiedOuterTableStylePropertyName method (4.0)
svn path=/trunk/mcs/; revision=160496
* WebControl.cs: implemented verifying that no inline style
property is set for controls which support the RenderOuterTable
property (4.0)
* IRenderOuterTable.cs: internal helper interface for controls
which support the RenderOuterTable property (for now only
ChangePassword, 3 more to come)
* ChangePassword.cs: implemented RenderOuterTable property and the
corresponding behavior of not rendering surrounding table when the
property is set to false (4.0).
Modified BaseChangePasswordContainer to not inherit from Table
anymore. Table is an instance variable (always used as the
template container in 2.0) which is optionally (and by default)
used to contain the templates.
svn path=/trunk/mcs/; revision=160459
* Menu.cs: fixed skip link rendering (no child controls are added
in the process, writing directly to HtmlTextWriter). Fixes tests
for 4.0
If StaticSubMenuIndent equals Unit.Empty on 4.0, default to using
16px as the value of the margin-left CSS attribute.
Fixed all failing tests (both 2.0 and 4.0)
svn path=/trunk/mcs/; revision=160369
* BoundField.cs: implemented HtmlEncodeFormatString property
(3.5+) and modified the way FormatDataValue works accordingly.
svn path=/trunk/mcs/; revision=160312
* ListBox.cs, CheckBoxList.cs, ListControl.cs: VerifyMultiSelect
is not part of the official API. MultiSelect capability validation
is performed using an internal virtual method MultiSelectOk ().
* BaseDataList.cs: OnPagePreLoad is not part of the official API
* BaseDataBoundControl.cs, BaseDataList.cs, DataListItem.cs,
ValidationSummary.cs: implemented 4.0 SupportsDisabledAttribute
property.
svn path=/trunk/mcs/; revision=160305
* Control.cs: moved 4.0 ClientID code to a separate method, so
that the ID_SET flag isn't set when necessary.
2010-07-13 Marek Habersack <[email protected]>
* Wizard.cs: wizard table doesn't contain any instances of
HtmlAnchor or Image controls. Moved rendering of the skip link
anchor to the TableCellNamingContainer class, which does that in
RenderChildren by directly writing to the passed writer. Fixes 4.0
rendering and all the failing Wizard tests.
svn path=/trunk/mcs/; revision=160304
* ImageMap.cs: implemented missing Enabled property (2.0+)
RaisePostBackEvent must be protected and virtual (2.0+)
NavigateUrl is ignored if the control is disabled (4.0)
svn path=/trunk/mcs/; revision=160053
* TreeView.cs:
When using registered CSS classes, the node style must use them in
reverse order.
More 4.0 test updates (disabled some Menu tests until its rendering is updated)
svn path=/trunk/mcs/; revision=160003
* HyperLink.cs: the associated image is not rendered using the
Image control.
4.0 updates for several tests (HTML rendering changes)
svn path=/trunk/mcs/; revision=159995
fail to work on .NET 4.0 as well, for the most part. I will fix them next week.
2010-07-02 Marek Habersack <[email protected]>
* TemplateControlParser.cs: added support for ClientIDMode
property
* Control.cs: implemented 4.0 features - ClientIDMode and
RenderingCompatibility.
* ClientIDMode.cs, IDataKeysControl.cs: added
2010-07-02 Marek Habersack <[email protected]>
* Menu.cs: 4.0 API updates.
* GridView.cs: implemented 4.0 properties -
SortedAscendingCellStyle, SortedAscendingHeaderStyle,
SortedDescendingCellStyle, SortedDescendingHeaderStyle,
ClientIDRowSuffix, ClientIDRowSuffixDataKeys, ShowHeaderWhenEmpty
along with associated rendering changes.
* DetailsView.cs, FormView.cs, GridView.cs: 4.0 API changes -
renamed ShowPage to SetPageIndex and made it public.
Added 4.0 interfaces to inheritance list and implemented them.
* DataKeyArray.cs: added internal constructor which accepts IList
instead of ArrayList. Changed the 'keys' field type to IList.
* ContainedTable.cs: the 'id' attribute must be rendered last.
* CheckBox.cs, CheckBoxList.cs, SiteMapPath.cs, Table.cs,
TableStyle.cs, TextBox.cs, WebControl.cs: 4.0 rendering changes.
* Calendar.cs, CompositeControl.cs, DropDownList.cs, HyperLink.cs,
Image.cs, ImageButton.cs, Label.cs, LinkButton.cs, LoginName.cs,
Panel.cs, Table.cs, TableCell.cs, TableRow.cs:
added new 4.0 property, SupportsDisabledAttribute.
2010-07-02 Marek Habersack <[email protected]>
* VersionConverter.cs: added support for checking whether the
passed version is equal or more than a specified minimal version.
* PagesSection.cs: added two 4.0 properties - ClientIDMode and
ControlRenderingCompatibilityVersion
2010-07-02 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: added support for ClientIDMode 4.0
property
* PageCompiler.cs, UserControlCompiler.cs: AddStatementsToInitTop
must call the base implementation.
svn path=/trunk/mcs/; revision=159826
* CheckBoxListTest.cs: added test for bug #600415
2010-04-28 Marek Habersack <[email protected]>
* CheckBoxList.cs: do not modify list item status in LoadPostData
when the list control is disabled.
If an item is selected and it was unchecked by the user, deselect
it. Fixes bug #600415
svn path=/trunk/mcs/; revision=156312
* ImageField.cs, CheckBoxField.cs: OnDataBindField must expect
sender to be something else than DataControlFieldCell. Fixes bug
#595568
2010-04-13 Marek Habersack <[email protected]>
* CheckBoxFieldTest.cs: added test for bug #595568
svn path=/trunk/mcs/; revision=155270
* FormView.cs: do not show the pager if PagerSettings.Visible is
false. Fixes bug #578863
2010-04-01 Marek Habersack <[email protected]>
* FormViewTest.cs: added test for bug #578863
svn path=/trunk/mcs/; revision=154631
* TemplateControlCompiler.cs: GetConverterForMember now completely
relies on TypeDescriptor and description providers to retrieve
converter for a property. Fixes bug #578586
If UrlPropertyAttribute is found for a member,
GetExpressionFromString uses the preconverted value, if any, as
parameter to HandleUrlProperty.
svn path=/trunk/mcs/; revision=152040
* TreeViewTest.cs: added test for bug #580692
2010-02-18 Marek Habersack <[email protected]>
* TreeView.cs: RegisterStyle must copy CssClass in addition to
other style properties. Fixes bug #580692
svn path=/trunk/mcs/; revision=151964