33 Commits
Author SHA1 Message Date
Alexander Köplinger a22bb15e6b [System.Web] Rename method parameters to match .NET contract 2017-03-16 13:02:09 +01:00
Zoltan Varga 0985d4aa4b [bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>. 2015-01-13 15:29:38 -05:00
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Martin e63b96685a "tree.SetSelectedNode (null, false)" will cause the OnSelectedNodeChanged event to be fired. The problem is, that e.Node is null which is not allowed. e.Node must contain the newly selected node. 2012-02-07 16:36:40 +01:00
Marek Habersack b58f5b27ba 2009-11-16 Marek Habersack <[email protected]>
* TreeNodeTest.cs: added test for a situation when a
	node already contains children when the PopulateOnDemand property
	is set.

2009-11-16  Marek Habersack  <[email protected]>

	* TreeNodeCollection.cs: whenever a node is added, let the owner
	know about it.

	* TreeNode.cs: added internal property HadChildrenBeforePopulating
	which is used to let TreeView know about an error condition where
	a populate-on-demand node contains children added outside the
	OnTreeNodePopulate event

	* TreeView.cs: if a node has any child nodes and PopulatOnDemand
	is set, throw an exception from RenderNode. This is the behavior
	of .NET

svn path=/trunk/mcs/; revision=146275
2009-11-16 17:09:06 +00:00
Marek Habersack 8791646ca9 Code formatting
svn path=/trunk/mcs/; revision=131201
2009-04-07 08:44:21 +00:00
Gonzalo Paniagua Javier de03d6a600 2009-04-06 Gonzalo Paniagua Javier <[email protected]>
* TreeNode.cs: reset the path data for all child nodes too.
	* TreeView.cs: HtmlAttribute encode the node text. When rebuilding the
	node tree, set the correct index for the nodes so that the Path is
	correct.


svn path=/trunk/mcs/; revision=131186
2009-04-07 03:38:00 +00:00
Igor Zelmanovich aa20dc91b4 2007-05-06 Igor Zelmanovich <[email protected]>
* TreeNode.cs: fixed: 
	when 'Value' property is not set, value of 'Text' property is used 
	instead and vice versa.

	* TreeNodeTest.cs:
	* TreeViewTest.cs:
	new tests were added.	


svn path=/trunk/mcs/; revision=76782
2007-05-06 13:55:51 +00:00
Marek Habersack 232398159d 2007-05-03 Marek Habersack <[email protected]>
* TreeNode.cs: correct version of the fix in r76488. Nodes
	retrieved from a navigation data source which have empty URL will
	not be selectable.

svn path=/trunk/mcs/; revision=76604
2007-05-03 10:39:43 +00:00
Igor Zelmanovich df60a8c6ea svn path=/trunk/mcs/; revision=73496 2007-02-27 17:36:43 +00:00
Vladimir Krasnov 20acde199c * TreeNode.cs: fixed Bind, fixed Value updating
svn path=/trunk/mcs/; revision=71184
2007-01-17 13:02:58 +00:00
Igor Zelmanovich 9d2c9243fb 2007-01-15 Igor Zelmanovich <[email protected]>
* TreeNode.cs
	considers INavigateUIData.NavigateUrl when bound.	


svn path=/trunk/mcs/; revision=71036
2007-01-15 15:25:15 +00:00
Igor Zelmanovich d361663aa7 2007-01-10 Igor Zelmanovich <[email protected]>
* TreeView.cs: fixed: SelectedNode, CheckedNodes.
	* TreeNode.cs:
	* TreeNodeCollection.cs:		

svn path=/trunk/mcs/; revision=70784
2007-01-10 16:50:47 +00:00
Konstantin Triger abe8395486 explicitly implement ICloneable.Clone as .Net does
svn path=/trunk/mcs/; revision=70420
2007-01-03 13:09:15 +00:00
Igor Zelmanovich 9f1365f28f 2006-12-19 Igor Zelmanovich <[email protected]>
* TreeView.cs:
	* TreeNode.cs:
	TreeNodeCollapsed is not raised for leaf node.		

svn path=/trunk/mcs/; revision=69735
2006-12-19 13:22:19 +00:00
Miguel de Icaza 8616a7e405 2006-11-28 Miguel de Icaza <[email protected]>
* Rationalize the user of MonoTODOs.  

		- Removed all the TODOs that were only overwritten methods
		and had no further information.

		- Methods that threw exceptions now have the message "Not
		implemnted".

		- Methods that return some constant are declared like
		that.

		- Removed a bunch of stale MonoTODOs that had not been
		removed. 


svn path=/trunk/mcs/; revision=68620
2006-11-28 22:15:23 +00:00
Igor Zelmanovich bfd235c3ae corrected rendering
svn path=/trunk/mcs/; revision=65298
2006-09-12 12:25:03 +00:00
Igor Zelmanovich 9e949e8074 corrected rendering: HoverNodeStyle works
svn path=/trunk/mcs/; revision=65214
2006-09-11 09:03:15 +00:00
Igor Zelmanovich 6afd41088d corrected rendering: styles are applied correct
svn path=/trunk/mcs/; revision=65175
2006-09-10 15:41:47 +00:00
Igor Zelmanovich 6843127774 fixed: ToggleExpandState().
svn path=/trunk/mcs/; revision=65059
2006-09-07 14:11:53 +00:00
Igor Zelmanovich 8783f29c0b fixed: populating nodes flow.
svn path=/trunk/mcs/; revision=65002
2006-09-06 12:58:18 +00:00
Igor Zelmanovich 389894669d TreeNodeCollection.cs: fixed: ViewState saved and restored correct
svn path=/trunk/mcs/; revision=65000
2006-09-06 12:34:06 +00:00
Igor Zelmanovich 5d0dc03639 fixed data binding
svn path=/trunk/mcs/; revision=64440
2006-08-27 14:20:21 +00:00
Konstantin Triger 53aae7cd31 No support for Nullable<bool>.GetValueOrDefault() yet
svn path=/trunk/mcs/; revision=63757
2006-08-15 13:26:49 +00:00
Lluis Sanchez 8033c6a610 2006-04-11 Lluis Sanchez <[email protected]>
* 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
2006-04-11 16:28:52 +00:00
Chris Toshok 5cb4398967 In System.Web.UI:
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
2006-02-23 15:21:28 +00:00
Sebastien Pouliot 9474837730 2005-09-15 Sebastien Pouliot <[email protected]>
* DataControlField.cs, HotSpot.cs, MenuItem.cs, Parameter.cs, 
	Style.cs, TreeNode.cs: Replace _empty_ StateBag.SetDirty () with 
	StateBag.SetDirty (true).


svn path=/trunk/mcs/; revision=50105
2005-09-15 20:56:42 +00:00
Lluis Sanchez fb0ff612f6 2005-05-06 Lluis Sanchez Gual <[email protected]>
* 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
2005-05-06 16:41:50 +00:00
Lluis Sanchez 86b8090f0b 2005-04-07 Lluis Sanchez Gual <[email protected]>
* 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
2005-04-07 16:02:36 +00:00
Lluis Sanchez 35e56f8ce6 2005-03-16 Lluis Sanchez Gual <[email protected]>
* TreeNode.cs, TreeView.cs: Don't raise the SelectedNodeChanged
	  event when loading the view state. Fixes #73746.


svn path=/trunk/mcs/; revision=41888
2005-03-16 11:35:49 +00:00
Lluis Sanchez 0156d5e21a 2004-12-02 Lluis Sanchez Gual <[email protected]>
* 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
2004-12-02 16:02:36 +00:00
Lluis Sanchez 7cd5b5fde6 2004-11-26 Lluis Sanchez Gual <[email protected]>
* TreeNodeBindingCollection.cs: Implemented.
	* TreeNodeBinding.cs: Implemented.
	* TreeNode.cs: Added support for data binding.
	* TreeView_Default_Collapse.gif, TreeView_Default_Expand.gif
	  TreeView_Default_NoExpand.gif: Moved to resources directory.
	* ListControl.cs: Fixed api.
	* XmlHierarchicalEnumerable.cs: Made internal.
	* DataBoundControl.cs: Modified api to match latest ms.net.
	* TreeView.js: New javascript file to support TreeView in the client.
	* XmlDataSource.cs: Added missing attributes.
	* HierarchicalDataBoundControl.cs: Mostly implemented.
	* BaseDataBoundControl.cs: Mostly implemented.
	* XmlHierarchyData.cs: Made internal.
	* TreeView.cs: Mostly implemented. The major missing feature is
	  client side tree population.


svn path=/trunk/mcs/; revision=36652
2004-11-26 16:42:35 +00:00
Lluis Sanchez 058e32506b 2004-11-23 Lluis Sanchez Gual <[email protected]>
* TreeNodeBindingCollection.cs, TreeNodeBinding.cs, TreeNode.cs,
	TreeNodeCollection.cs, TreeNodeStyleCollection.cs, TreeNodeStyle.cs,
	TreeView.cs: Initial implementation.
	* DataBoundControl.cs: Set the correct base class.
	* HierarchicalDataBoundControl.cs, BaseDataBoundControl.cs: Created stub.
	* TreeNodeSelectAction.cs: Formatting.
	* TreeView_Default_Collapse.gif, TreeView_Default_Expand.gif,
	TreeView_Default_NoExpand.gif: TreeView images.


svn path=/trunk/mcs/; revision=36429
2004-11-23 10:39:10 +00:00