Commit Graph
66 Commits
Author SHA1 Message Date
Marek Habersack a8ecbec688 2009-04-07 Marek Habersack <[email protected]>
* TreeView.js: removed nodeText parameter from the JS calls.

	* TreeView.cs: encode | characters into U+007C, so that
	RaiseCallbackEvent doesn't get confused.
	Removed nodeText parameter from the JS calls.

svn path=/trunk/mcs/; revision=131196
2009-04-07 07:05:06 +00:00
Gonzalo Paniagua Javier 1b8ce0ac74 remove CWL
svn path=/trunk/mcs/; revision=131187
2009-04-07 03:38:57 +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
Marek Habersack 6026f7a60a 2009-04-06 Marek Habersack <[email protected]>
* HttpRuntime.cs: added a new internal static property
	IsDebuggingEnabled

	* HttpContext.cs: IsDebuggingEnabled now calls
	HttpRuntime.IsDebuggingEnabled

2009-04-06  Marek Habersack  <[email protected]>

	* Page.cs: ProcessRaiseCallbackEvent and ProcessGetCallbackResult
	now return full exception trace if one is caught and we're running
	in debugging mode.

2009-04-06  Marek Habersack  <[email protected]>

	* TreeView.js: TreeView_ToggleExpand now takes more parameters - a
	full definition of treeview's node contents.
	Added new function, TreeView_PopulateNode, which partially takes
	over role of the PopulateNode function generated in
	TreeView.OnPreRender (see below). Fixes bug #492307

	* TreeView.cs: RaiseCallbackEvent needs to recreate the event
	target's parental tree all the way from the root to the node and
	populate only the leaf (requested) node. This avoids calling the
	TreeNodePopulate handler more times than needed. Fixes bug #492307
	OnPreRender: moved the script code to constants and the script
	body is now generated using StringBuilder instead of a series of
	String.Format calls.
	GetClientExpandEvent: adjusted code for new TreeView JavaScript
	API.

svn path=/trunk/mcs/; revision=131137
2009-04-06 18:02:20 +00:00
Marek Habersack 58caa86044 2009-04-02 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: implemented missing converter for
	the ExpandDepth property. Fixes bug #490860

svn path=/trunk/mcs/; revision=130813
2009-04-01 22:31:58 +00:00
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