* TreeNodeBinding.cs: Added HasPropertyValue property
to check if some properties have a value in the
state bag.
* TreeNode.cs: Lazily get the dataPath. Instead of getting
bound properties when they are requested, get all of
them when the node is bound and store their values in
the state bag. In this way it won't be necessary to
query every time the datasource to get the values.
* XmlHierarchyData.cs: Implemented IHierarchyData.Path.
* TreeView.cs: Call base in OnInit(). Bind nodes after
adding them to the list, to properly keep track of
changes. Don't databind in postbacks.
svn path=/trunk/mcs/; revision=59366
* DataGrid.cs: if custom paging is enabled the persisted item count
must be the count of the rendered items, otherwise paging from the
last to a previous page won't work correctly. Fixes bug #77556.
svn path=/trunk/mcs/; revision=58763
in PrepareControlHierarchy method fixed style applying for AlternatingItem, EditItem and Separator item
fixed RenderContents method, if no items exist, no nned to render emty table strructure.
svn path=/trunk/mcs/; revision=58295
* CompareValidator.cs: when searching for the control to compare, use
NamingContainer instead of Page. Fixes bug #77793.
svn path=/trunk/mcs/; revision=58044
cases, apply the NodeTemplate if it exists and there isn't a
CurrentNodeTemplate or RootNodeTemplate, respectively.
2006-03-15 Chris Toshok <[email protected]>
svn path=/trunk/mcs/; revision=58037
* SiteMapDataSourceView.cs (OnDataSourceViewChanged): override.
* SiteMapDataSource.cs (StartingNodeOffset): new property.
(GetStartNode): add code to handle StartNodeOffset < 0.
* CompositeControl.cs
(ICompositeControlDesignerAccessor.RecreateChildControls): just
call the non-iface method.
* DataBoundControl.cs (GetDataSource): this is likely wrong, but
traverse up the naming container tree looking for our datasource
if we're bound using a DataSourceID. This fixes things in the
sitemap1 test, which uses a mixture of templates and
ContentPlaceholders with the sitemapdatasource and sitemappath at
different levels in the naming container tree (let along the
itemnode template.)
* SiteMapPath.cs (DataBind): implement this by chaining up to
base.DataBind, then by looping over our children, emitting
OnItemDataBound for each SiteMapNodeItem.
(AddAttributesToRender): remove.
(CreateChildControls): call DataBind as the final step here.. I
have, of course, no idea if this is right.
(CreateControlHierarchy): don't databind our children here, as
they need to be in the Controls collection before we do.
(RenderContents): render our accessibility/screenreader stuff
here, if SkipLinkText != "".
svn path=/trunk/mcs/; revision=58030
fixed InitializeNumericPager, pager numbers should be a Label control
fixed CreateControlHierarchy, corrected dataset index of items if paging is enabled
svn path=/trunk/mcs/; revision=57872
fixed CreateControlStyle to set correct cellspacing of table style
fixed InitializeItem to correct applying template to selected and edit items.
svn path=/trunk/mcs/; revision=57731
2006-03-07 Chris Toshok <[email protected]>
* Page.cs (InitializeStyleSheet): load the style sheet theme using
ThemeDirectoryCompiler.
(InitializeTheme): load the page's theme using
ThemeDirectoryCompiler.
(InternalProcessRequest): call InitializeTheme after OnPreInit.
(FrameworkInitialize): call InitializeStyleSheet.
(PageTheme,StyleSheetPageTheme): new properties to get the
respective themes.
* Control.cs (ApplyStyleSheetSkin): new method. Calls ApplySkin
on the ControlSkin (if there is one) for this control in the
page's StyleSheetSkin.
(ApplyThemeRecursively): applies the page's theme recursively to
the control hierarchy. Must be done this way because the control
tree is already present when we apply the theme (it has to be,
since theme's override settings).
* PageTheme.cs (GetControlSkin): add internal call to do the
lookup for us.
* PageThemeFileParser.cs: the parser object that represents each
individual skin file.
* PageThemeParser.cs: the parser object that represents the entire
theme directory.
* PageThemeBuilder.cs: this class generates the right exception on
the right event, but it's not hooked up yet.
In System.Web.UI.WebControls:
2006-03-07 Chris Toshok <[email protected]>
* WebControl.cs (EnableTheming): leave the MonoTODO, but implement
by chaining up to base.EnableTheming.
svn path=/trunk/mcs/; revision=57676
2006-03-02 Chris Toshok <[email protected]>
* Control.cs (ApplyStyleSheetTheme): remove the exception, and add
a MonoTODO.
* Page.cs (Theme): implement setter/getter.
(StyleSheetTheme): same.
* PageParser.cs (ProcessMainAttributes): parse the Theme and
StyleSheetTheme attributes.
In System.Web.UI.WebControls:
2006-03-02 Chris Toshok <[email protected]>
* WebControl.cs (SkinID): implement setter/getter, and have them
just chain up to base.SkinID.
In System.Web.Compilation:
2006-03-02 Chris Toshok <[email protected]>
* TemplateControlCompiler.cs (InitMethod): emit an assignment for
SkinID just after the creation of our object, and right after that
call "_ctrl.ApplyStyleSheetSkin (page)".
(CreateAssignStatementsFromAttributes): split out the majority of
this code to CreateAssignStatementFromAttribute, and change this
method to simply a loop over the attribute keys. In the 2.0 case,
skip the SkinID property, since that's handled explicitly in
InitMethod.
* PageCompiler.cs (AddStatementsToInitMethod): emit assignments
for Theme and StyleSheetTheme.
svn path=/trunk/mcs/; revision=57516
2006-02-27 Chris Toshok <[email protected]>
* DataSourceView.cs: Name isn't virtual.
* DataSourceControl.cs: beat this class over the head with the
corcompare stick.
* DataSourceControlBuilder.cs: new stubbed control builder for
DataSourceControl.
In System.Web.UI.WebControls:
2006-02-27 Chris Toshok <[email protected]>
* SqlDataSource.cs: track change to DataSourceControl's protected
methods.
* AccessDataSource.cs: same.
svn path=/trunk/mcs/; revision=57342
2006-02-23 Chris Toshok <[email protected]>
* Page.cs (ProcessCallbackData): track change to
ICallbackEventHandler iface.
* ICallbackEventHandler.cs: enable the proper members of this
interface.
* DataSourceSelectArguments.cs: reformat getter/setters.
In System.Web.UI.WebControls:
2006-02-23 Chris Toshok <[email protected]>
* BaseCompareValidator.cs, BaseValidator.cs, Button.cs,
DataControlField.cs, DetailsView.cs, FormView.cs, GridView.cs,
HotSpot.cs, LinkButton.cs, Login.cs, SiteMapDataSource.cs,
SqlDataSourceCommandType.cs, TableSectionStyle.cs,
TemplateField.cs, TreeNodeCollection.cs, TreeNode.cs, TreeView.cs,
ValidationSummary.cs, WizardStepBase.cs: fix tons of corcompare
errors. most were caused by a property/method being virtual when
it shouldn't be, or vice versa.
svn path=/trunk/mcs/; revision=57203
* ParameterCollection.cs: add an EditorAttribute to the class.
* Parameter.cs: cleanup, fix the Value property, and implement the
Size property.
* SqlDataSourceView.cs: clean things up a bit, and add handling
for parameters.
svn path=/trunk/mcs/; revision=57191
* SqlDataSourceFilteringEventArgs.cs: formatting.
* SqlDataSourceSelectingEventArgs.cs: remove ExecutingSelectCount,
both the property and ctor arg.
* AccessDataSourceView.cs (ExecuteSelect): use SelectingEventArgs,
not CommandEventArgs. Also, cast the return value of
oleCommand.ExecuteReader.
* AccessDataSource.cs (.ctor): fix the ctors and remove FIXME
comments.
(GetDbProviderFactory): implement naively, and leave a MonoTODO.
(GetPhysicalDataFilePath): implement, again naively. this is
where the NRE is generated when we access ConnectionString in a
testcase on .net.
(ConnectionString): dynamically generate this based on our
DataFile attribute.
(DataFile): clear the ConnectionString in the setter so we'll
regenerate it.
(ProviderName): use base.ProviderName in the getter, not
this.ProviderName, so we don't recurse infinitely.
* SqlDataSourceView.cs: start reworking this class.
* SqlDataSource.cs (GetDbProviderFactory): implement this,
following the MS docs on the matter (if ProviderName is null/"",
return SqlClientFactory.Instance.)
(GetDbProviderFactoryInternal): add an internal method for use by
SqlDataSourceView.
(TrackViewState): don't invoke View.TrackViewState unless we have
one.
(Selecting): change event handler type to match MS.
(Filtering): add missing event.
(View): call CreateDataSourceView, don't just create an
SqlDataSourceView.
svn path=/trunk/mcs/; revision=57169
* BoundField.cs: ues the ViewState.Get* pattern with default
instead of the explicit ViewState lookup + null check, and fix the
scope of InitializeDataCell.
svn path=/trunk/mcs/; revision=57121
correct the "disabled" attribute in CheckBoxList
* CheckBoxList.cs: fixed RenderItem, to correct the "disabled" attribute in CheckBoxList
svn path=/trunk/mcs/; revision=57071
* ListControl.cs (OnDataBinding): in 2.0, only clear our items if
AppendDataBoundItems != false. Also, split all the databinding
logic out to DoDataBinding, which we call from here only if
!NET_2_0.
(DoDataBinding): new function. actually perform the binding.
(PerformDataBinding): implement.
(PerformSelect): chain up to base class.
svn path=/trunk/mcs/; revision=56683