Commit Graph
61 Commits
Author SHA1 Message Date
Marek Habersack ef9c9e51ce Do not abuse the 'private' keyword
svn path=/trunk/mcs/; revision=116539
2008-10-20 17:37:54 +00:00
Marek Habersack 81c4068d12 2008-10-17 Marek Habersack <[email protected]>
* ImageMap.cs: added the SupportsEventValidation attribute to the
	class.
	Validate the event in RaisePostBackEvent ().
	Register for event validation in Render ().

	* DropDownList.cs, ListBox.cs: validate the event in LoadPostData ().

	* TextBox.cs: validate the event in LoadPostData ().
	Register for event validation in AddAttributesToRender ().

	* HiddenField.cs: validate the event in RaisePostDataChangedEvent.
	Register for event validation in Render ().

	* RadioButton.cs: validate the event in LoadPostData ().
	Register for event validation in InternalAddAttributesToRender.

	* CheckBox.cs, RadioButtonList.cs: validate the event in
	RaisePostDataChangedEvent.

	* Menu.cs: added the SupportsEventValidation attribute to the
	class.
	Validate the event in RaisePostBackEvent ().
	Register for event validation in GetClientEvent ().

	* DetailsView.cs, GridView.cs: validate the event in
	RaisePostBackEvent ().
	Register for validation in GetCallbackScript () and in OnPreRender

	* Button.cs, Table.cs, BulletedList.cs, Calendar.cs, LinkButton.cs,
	ImageButton.cs, TreeView.cs: validate the event in RaisePostBackEvent ().

2008-10-17  Marek Habersack  <[email protected]>

	* Control.cs: added the ValidateEvent internal method, used by
	classes descending from Control to automatically trigger event
	validation.

	* Page.cs: removed the CheckForValidationSupport method. It moved
	to Control.cs
	RaisePostBackEvent no longer validates the events, this
	functionality has been moved to Control.ValidateEvent.

2008-10-17  Marek Habersack  <[email protected]>

	* HtmlInputHidden.cs: validate the event in LoadPostDataInternal.

	* HtmlInputButton.cs: validate the event in
	RaisePostBackEventInternal ().
	Register for event validation in RenderAttributes ()

	* HtmlTextArea.cs: validate the event in
	RaisePostBackDataChangedEvent ().

	* HtmlButton.cs: validate the event in RaisePostBackEvent ().
	Register for event validation in RenderAttributes ()

	* HtmlAnchor.cs: validate the event in RaisePostBackEvent ().
	Register for event validation in RenderAttributes ().

	* HtmlInputRadioButton.cs, HtmlSelect.cs: validate the event in
	LoadPostData.

	* HtmlInputText.cs, HtmlInputImage.cs, HtmlInputCheckBox.cs,
	HtmlInputPassword.cs: validate the event in
	RaisePostDataChangedEvent ().

2008-10-17  Marek Habersack  <[email protected]>

	* MenuAdapterTest.cs: work around event validation failure in the
	test environment.

2008-10-17  Marek Habersack  <[email protected]>

	* PageTest.cs: use a custom version of HtmlInputHidden control to
	work around the new event validation code which doesn't work in
	this instance.

svn path=/trunk/mcs/; revision=116231
2008-10-17 14:56:19 +00:00
Marek Safar f3f05c2055 Warnings cleanup
svn path=/trunk/mcs/; revision=111904
2008-08-29 09:48:05 +00:00
Marek Habersack 342a629ca2 2008-07-28 Marek Habersack <[email protected]>
* TreeView.cs: when TreeView is displaying a site map and there is
	no node selected by the user, select the node corresponding to the
	current page, if any.

svn path=/trunk/mcs/; revision=109040
2008-07-28 16:08:02 +00:00
Roei Erez 5ea42ecc8a In case of multiple tree nodes bindings with the same key, select the first one and not the last one.
svn path=/trunk/mcs/; revision=107814
2008-07-13 09:30:15 +00:00
Igor Zelmanovich ee06e666ba 2008-01-29 Igor Zelmanovich <[email protected]>
* TreeView.cs: add XPFileExplorer icon set.

svn path=/trunk/mcs/; revision=94247
2008-01-29 14:04:54 +00:00
Igor Zelmanovich 8ce3a695d6 2008-01-13 Igor Zelmanovich <[email protected]>
* TreeView.cs:
	* TreeView.js:
	upgrade client side script due to changes in webform.js.		


svn path=/trunk/mcs/; revision=92774
2008-01-13 09:41:36 +00:00
Igor Zelmanovich 7cb6f04d5c 2007-12-24 Igor Zelmanovich <[email protected]>
* TreeView.cs: revert changes from r91230


svn path=/trunk/mcs/; revision=91853
2007-12-24 09:42:34 +00:00
Marek Habersack 3476c409c3 2007-12-13 Marek Habersack <[email protected]>
* ClientScriptManager.cs, MasterPageParser.cs, Control.cs,
	Page.cs: speed optimization - use String.Concat instead of
	String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* Menu.cs, TreeView.cs: optimize use of String.Format in
	OnPreRender.
	Speed optimization - use String.Concat instead of String.Format in
	some cases.

	* GridView.cs, DetailsView.cs: optimize use of String.Format in
	OnPreRender.

	* CheckBox.cs, AccessDataSource.cs, WebColorConverter.cs,
	WebControl.cs,TextBox.cs, DropDownList.cs, ValidationSummary.cs,
	ListBox.cs, Panel.cs, BaseValidator.cs, LinkButton.cs: speed
	optimization - use String.Concat instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* HtmlForm.cs, HtmlButton.cs: speed optimization - use String.Concat
	instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* AssemblyResourceLoader.cs: speed optimization - use String.Concat
	instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* SessionId.cs: 
	speed optimization - use String.Concat
	instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* SqlProfileProvider.cs, ProfileParser.cs: speed optimization -
	use String.Concat instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* ApplicationManager.cs, ApplicationHost.cs,
	DefaultVirtualPathProvider.cs: speed optimization - use
	String.Concat instead of String.Format in some cases.

svn path=/trunk/mcs/; revision=91230
2007-12-13 13:50:10 +00:00
Vladimir Krasnov 001edb1810 * TreeView.cs: refactoring, used AddAttribute overload without encoding on known attribute values,
used Page.ClientScript.GetWebResourceUrl call instead of AssemblyResourceLoader.GetResourceUrl

svn path=/trunk/mcs/; revision=83580
2007-08-07 11:45:27 +00:00
Igor Zelmanovich 22862a356e 2007-07-24 Igor Zelmanovich <[email protected]>
* TreeView.cs: refactoring:
	* TreeView.js:
	used ClientScriptManager.GetCallbackEventReference API instead calling 
	WebForm_DoCallback explicit.
		
2007-07-24 Igor Zelmanovich <[email protected]>

	* ClientScriptManager.cs: fixed: GetCallbackEventReference method.
		

svn path=/trunk/mcs/; revision=82560
2007-07-24 12:19:00 +00:00
Igor Zelmanovich 7f257ad214 fixed line ending
svn path=/trunk/mcs/; revision=82555
2007-07-24 12:00:17 +00:00
Marek Habersack 83063b42bd More TreeView rendering fixes
2007-05-09  Marek Habersack  <[email protected]>

	* TreeNodeStyleCollection.cs: do not set font's underline flag to
	false, set it to its own value instead.

	* TreeView.cs: if level style exists and has ChildNodesPadding
	set, it takes precedence over the node style setting (if any).

svn path=/trunk/mcs/; revision=77002
2007-05-09 12:14:58 +00:00
Marek Habersack c5f417422d 2007-05-08 Marek Habersack <[email protected]>
* TreeView.cs: children padding is rendered only before and after
	the children are rendered, not between them. Also, render padding
	only if there are any nodes to follow the current one.

svn path=/trunk/mcs/; revision=76905
2007-05-08 09:01:54 +00:00
Marek Habersack af58980fef 2007-05-03 Marek Habersack <[email protected]>
* TreeView.cs: honor ChildNodesPadding of the NodeStyle.

svn path=/trunk/mcs/; revision=76631
2007-05-03 17:37:16 +00:00
Marek Habersack b573b5e1ed 2007-05-03 Marek Habersack <[email protected]>
* TreeViewTest.cs: revert r76541.

2007-05-03  Marek Habersack  <[email protected]>

	* TreeView.cs: revert r76488, it wasn't entirely correct. I need
	to investigate the special cases it solved a bit more.

svn path=/trunk/mcs/; revision=76597
2007-05-03 09:32:27 +00:00
Marek Habersack 4dc04ab9b3 2007-04-30 Marek Habersack <[email protected]>
* TreeView.cs: bring rendering closer to the MS.NET rendering.

svn path=/trunk/mcs/; revision=76488
2007-04-30 12:26:35 +00:00
Konstantin Triger 5cff7fd740 use Invariant culture for string manipulations
svn path=/trunk/mcs/; revision=75433
2007-04-05 12:48:48 +00:00
Konstantin Triger c1360afb03 use Invariant culture for string manipulations
svn path=/trunk/mcs/; revision=75429
2007-04-05 11:43:27 +00:00
Igor Zelmanovich f9c2c8d33f 2007-03-28 Igor Zelmanovich <[email protected]>
* Menu.cs:
	* TreeView:
	avoid Exception if HierarchicalDataSourceView.Select() returns null.

svn path=/trunk/mcs/; revision=75073
2007-03-28 13:36:17 +00:00
Igor Zelmanovich df60a8c6ea svn path=/trunk/mcs/; revision=73496 2007-02-27 17:36:43 +00:00
Eyal Alalouf 9396a91227 add Http callback support for J2EE portlets.
svn path=/trunk/mcs/; revision=73071
2007-02-18 12:28:38 +00:00
Eyal Alalouf d8091d034e Fix NavigateUrl render for J2EE portlets.
svn path=/trunk/mcs/; revision=72350
2007-02-06 12:00:57 +00:00
Igor Zelmanovich b62028a984 2007-02-04 Igor Zelmanovich <[email protected]>
* Page.cs:
	* ClientScriptManager.cs:
	fixed RegisterClientScriptInclude: all includes that was registered before 
	rendering are rendered at begin form.		

2007-02-04 Igor Zelmanovich <[email protected]>

	* Panel.cs: fixed: reverted r71441.
	* TreeView.cs: used internal RegisterWebFormClientScript API 
	to cause the relevant script be included.	

svn path=/trunk/mcs/; revision=72258
2007-02-04 12:02:58 +00:00
Igor Zelmanovich efd08006de 2007-01-30 Igor Zelmanovich <[email protected]>
* TreeView.cs:
	* TreeView.js:
	fixed PopulateOnDemand: used UniqueID to call WebForms_DoCallBack().


svn path=/trunk/mcs/; revision=71969
2007-01-30 16:00:11 +00:00
Vladimir Krasnov 2f8efd3bbc * TreeView.cs: fixed RegisterStyle, style names should be without leading underscore. fixed RenderNode, node icons should be taken also from level styles
svn path=/trunk/mcs/; revision=71196
2007-01-17 14:41:30 +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
Igor Zelmanovich f15e9c1872 2006-12-28 Igor Zelmanovich <[email protected]>
* TreeView.cs: 
	ResolveClientUrl used with LineImagesFolder, ExpandImageUrl, 
	CollapseImageUrl and NoExpandImageUrl properties.


svn path=/trunk/mcs/; revision=70170
2006-12-28 16:09:35 +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
Igor Zelmanovich 5feeb7e28f 2006-12-11 Igor Zelmanovich <[email protected]>
* TreeView.cs: fixed: ResolveClientUrl used with ImageUrl and NavigateUrl


svn path=/trunk/mcs/; revision=69596
2006-12-17 11:20:51 +00:00
Igor Zelmanovich 914c287794 2006-12-06 Igor Zelmanovich <[email protected]>
* TreeView.cs: fixed: support for event validation.


svn path=/trunk/mcs/; revision=69099
2006-12-06 15:06:26 +00:00
Marek Habersack f5869e74d2 more optimizations
svn path=/trunk/mcs/; revision=68450
2006-11-25 02:43:22 +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 fd2f5e65bd fixed: for PopulateOnDemand nodes expanded and checked state restored correct on PostBack
svn path=/trunk/mcs/; revision=65153
2006-09-10 10:44:00 +00:00
Igor Zelmanovich 50cdb7cb1e fixed: populating nodes.
svn path=/trunk/mcs/; revision=65065
2006-09-07 14:52:01 +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 513bf45787 TreeView.cs: corrected rendering: RenderBeginTag, RenderEndTag
svn path=/trunk/mcs/; revision=64985
2006-09-06 07:32:52 +00:00
Igor Zelmanovich 91d8a1a5b0 TreeView.cs: fixed: when specified value is not one of the TreeNodeTypes values exception is threw.
svn path=/trunk/mcs/; revision=64984
2006-09-06 07:01:42 +00:00
Igor Zelmanovich ff21dfce47 TreeView.cs: fixed: when specified image set is not one of the TreeViewImageSet values exception is threw.
svn path=/trunk/mcs/; revision=64983
2006-09-06 06:19:58 +00:00
Igor Zelmanovich 5d0dc03639 fixed data binding
svn path=/trunk/mcs/; revision=64440
2006-08-27 14:20:21 +00:00
Gonzalo Paniagua Javier 6eaf7760c4 2006-08-03 Gonzalo Paniagua Javier <[email protected]>
* Style.cs:
	* Label.cs:
	* TreeView.cs: Patch by Marek Habersack that fixes bug #78968 take 2.


svn path=/trunk/mcs/; revision=63311
2006-08-03 16:59:39 +00:00
Gonzalo Paniagua Javier 1752cddaf5 2006-07-28 Gonzalo Paniagua Javier <[email protected]>
* TreeView.cs: several changes to improve compatibility with MS.
	Patch by Marek Habersack that fixes bug #77551.


svn path=/trunk/mcs/; revision=63093
2006-07-28 18:46:40 +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 adf172ecf9 2005-09-23 Sebastien Pouliot <[email protected]>
* Button.cs: For 2.0 don't add the "name" attribute unless there's an 
	id.
	* DataGrid.cs: Fix TagKey (table) for 2.0.
	* DataList.cs: Revert 2.0 specific stuff that was changed in RC.
	* DropDownList.cs: For 2.0 don't add the "name" attribute unless 
	there's an id.
	* ListBox.cs: For 2.0 don't add the "name" attribute unless there's an
	id.
	* RoleGroupCollection.cs: Fix "extra" exception in Remove method.
	* Style.cs: Fixed (2.0) RegisteredCssClass to returns String.Empty 
	(i.e. not null).
	* TextBox.cs: For 2.0 don't add the "name" attribute unless there's an
	id.
	* TreeView.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* XmlDataSource.cs: Added declarative security (Link and Inheritance
	demands) for Minimal.


svn path=/trunk/mcs/; revision=50583
2005-09-23 15:46:05 +00:00
Chris Toshok f306634b08 2005-08-29 Chris Toshok <[email protected]>
* TreeView.cs: Use the StateBag accessors Ben added, and implement
	SkipLinkText and Visible.


svn path=/trunk/mcs/; revision=49091
2005-08-29 20:26:29 +00:00
Chris Toshok c4411f0f84 2005-08-29 Chris Toshok <[email protected]>
* TreeView.cs: fix typo in an attribute.


svn path=/trunk/mcs/; revision=49083
2005-08-29 18:58:58 +00:00
Miguel de Icaza 54079f764a Commit of changes to core files, on behalf of the team
svn path=/trunk/mcs/; revision=48944
2005-08-26 22:58:48 +00:00