17 Commits
Author SHA1 Message Date
Marek Habersack afeab3ef73 - 1.1 code removal
- coding style
- minor optimizations

svn path=/trunk/mcs/; revision=159296
2010-06-21 21:01:26 +00:00
Marek Habersack f3bc4a2f46 Use UNIX line endings consistently
svn path=/trunk/mcs/; revision=116241
2008-10-17 15:26:06 +00:00
Igor Zelmanovich 98b3130e6f 2007-02-04 Igor Zelmanovich <[email protected]>
* Button.cs:
	* ButtonField.cs:
	* CommandField.cs:
	* DataControlButton.cs:
	* DataControlField.cs:
	* ImageButton.cs:
	* PagerSettings.cs:						
	Internal classes are used in databound controls for buttons 
	are derived from right types. It allows to have access to them by casting
	to public types. This trick is used in one of starter kits of MS.

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

	* Page.cs: 
	VerifyRenderingInServerForm does not fire exception when IsCallback

svn path=/trunk/mcs/; revision=72269
2007-02-04 16:24:33 +00:00
Igor Zelmanovich 1bb2e1680e 2006-12-27 Igor Zelmanovich <[email protected]>
* CommandField.cs: fixed: 
	when ShowEditButton=false Update/Cancel button doesn't appear.	 
	when ShowInsertButton=false Insert/Cancel button doesn't appear.	 


svn path=/trunk/mcs/; revision=70135
2006-12-27 17:18:36 +00:00
Igor Zelmanovich 01fbc88d77 2006-10-24 Igor Zelmanovich <[email protected]>
* CommandField.cs: fixed: 
	considers CaseValidation, ValidationGroup, ButtonType.
	* DataControlButton.cs: refactoring:


svn path=/trunk/mcs/; revision=66916
2006-10-24 12:42:23 +00:00
Igor Zelmanovich b7b3ecd853 2006-10-23 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: IPostBackContainer.GetPostBackOptions method.
	* DataControlButton.cs:	
	* CommandField.cs: CausesValidation feature must be implemented other way


svn path=/trunk/mcs/; revision=66903
2006-10-23 15:14:28 +00:00
Igor Zelmanovich efa431c25c 2006-10-09 Igor Zelmanovich <[email protected]>
* CommandField.cs: ValidateSupportsCallback(): exception's message.


svn path=/trunk/mcs/; revision=66444
2006-10-09 09:41:44 +00:00
Andrew Skiba be5ab8557c test and fix for CommandField.ValidateSupportsCallback
svn path=/trunk/mcs/; revision=62675
2006-07-17 15:41:25 +00:00
Vladimir Krasnov 86480b17b0 * CommandField.cs: fixed InitializeCell, wrong order of command buttons
* ImageField.cs: image field with null src and ConvertEmptyStringToNull should be rendered as label
* BoundField.cs: empty null value should be rendered as nbsp
* GridViewRowCollection.cs: fixed SyncRoot

svn path=/trunk/mcs/; revision=62660
2006-07-16 15:44:22 +00:00
Chris Toshok 99bc4f7b8b 2006-02-21 Chris Toshok <[email protected]>
* ButtonField.cs: ues the ViewState.Get* pattern with default
	instead of the explicit ViewState lookup + null check.

	* CommandField.cs: same.

	* CheckBox.cs: same.

	* AutoGeneratedFieldProperties.cs: same.

	* BaseDataList.cs: same.

	* CircleHotSpot.cs: same.

	* BulletedList.cs: same.

	* DataBoundControl.cs: same.

	* CookieParameter.cs: same.

	* ControlParameter.cs: same.

	* CustomValidator.cs: same.

	* ButtonFieldBase.cs: same.

	* CheckBoxField.cs: same, and fix the scope of InitializeDataCell.

	* AutoGeneratedField.cs: fix scope of InitializeDataCell.

	* BaseValidator.cs: same, and clean up the getter/setter formatting.

	* CompareValidator.cs: same.


svn path=/trunk/mcs/; revision=57120
2006-02-22 01:13:12 +00:00
Chris Toshok 545c9d318f 2005-09-01 Chris Toshok <[email protected]>
* Button.cs, ButtonField.cs, FontInfo.cs, Style.cs, Xml.cs,
	CommandField.cs, HyperLinkColumn.cs, Table.cs,
	RegularExpressionValidator.cs, DataGridPagerStyle.cs, Label.cs,
	CheckBox.cs, RadioButton.cs, TableStyle.cs, ListControl.cs,
	Image.cs, BaseCompareValidator.cs, BaseDataList.cs, DataList.cs,
	TemplateColumn.cs, RangeValidator.cs, ImageField.cs,
	BaseValidator.cs, CustomValidator.cs, TextBox.cs,
	ButtonFieldBase.cs, BoundField.cs, CheckBoxList.cs,
	RadioButtonList.cs, RequiredFieldValidator.cs, AdRotator.cs,
	Repeater.cs, DropDownList.cs, CheckBoxField.cs, HyperLink.cs,
	XmlDataSource.cs, Panel.cs, DataGrid.cs, ButtonColumn.cs,
	CompareValidator.cs, Calendar.cs, ListBox.cs, TableCell.cs,
	WebControl.cs, Literal.cs, ValidationSummary.cs, ImageButton.cs,
	TableRow.cs, LinkButton.cs, DataGridColumn.cs, BoundColumn.cs,
	TableItemStyle.cs: Add some WebCategory and WebSysDescription
	attributes.


svn path=/trunk/mcs/; revision=49301
2005-09-01 21:25:48 +00:00
Kornél Pál b4797dcddf Replaced all assembly references with constants in Consts.cs.
svn path=/trunk/mcs/; revision=47824
2005-07-29 00:13:41 +00:00
Lluis Sanchez 3b4fdcc1c6 2005-05-26 Lluis Sanchez Gual <[email protected]>
* DataListItem.cs:
	* GridViewRow.cs:
	* DataGridItem.cs:
	* RepeaterItem.cs:
	* FormView.cs:
	* MenuItemTemplateContainer.cs:
	* DetailsView.cs: Track changes in the IDataItemContainer interface.
	
	* CommandField.cs: Added CausesValidation property. Set that
	property value to all buttons of the field.
	
	* SqlDataSourceView.cs:
	* CollectionDataSource.cs:
	* XmlDataSourceView.cs: Properly initialize the base class.
	
	* SiteMapDataSource.cs:
	* SiteMapHierarchicalDataSourceView.cs:
	* SiteMapNodeItem.cs:
	* SiteMapDataSourceView.cs:
	* SiteMapPath.cs: Mostly implemented.
	
	* HierarchicalDataBoundControl.cs: Always bind the control when the
	page is loaded for the first time.
	
	* TreeView.cs: Properly bind the control when loaded from a callback.


svn path=/trunk/mcs/; revision=45062
2005-05-26 16:17:00 +00:00
Lluis Sanchez 494e5c582e 2005-05-04 Lluis Sanchez Gual <[email protected]>
* DataControlField.cs:
	* CommandField.cs: 
	* GridView.cs:
	* FormView.cs:
	* DataControlCommands.cs:
	* DetailsView.cs: Use constants to identify commands.

	* SubMenuStyle.cs: Use Unit instead of int for padding.
	* SubMenuStyleCollection.cs: Implemented.
	
	* DataList.cs:
	* Menu.cs: Added some missing methods and properties.
	
	* Literal.cs:
	* DataGridPagerStyle.cs: Fixed default value attributes.
	* ListControl.cs: Implemented IEditableTextControl interface.
	
	* MenuItemBinding.cs: Added Selectable property.
	* CustomValidator.cs: removed interface.
	
	* MenuItem.cs: Added support for custom binding. 
	* DropDownList.cs: Moved text properties to base class.


svn path=/trunk/mcs/; revision=44009
2005-05-04 08:53:30 +00:00
Lluis Sanchez 833d48dadb 2005-04-21 Lluis Sanchez Gual <[email protected]>
* FormViewDeleteEventArgs.cs:
	* FormViewInsertEventArgs.cs:
	* FormViewUpdateEventArgs.cs:
	* FormViewDeletedEventArgs.cs:
	* FormViewUpdatedEventArgs.cs:
	* FormViewInsertedEventArgs.cs: Implemented some missing properties.
	
	* LinkButton.cs:
	* IButtonControl.cs:
	* Button.cs: Removed SoftKey property.
	
	* CheckBox.cs: Don't try to load post back data if the control
	is disabled.
	
	* ImageField.cs:
	* AutoGeneratedField.cs:
	* DataControlField.cs:
	* CommandField.cs:
	* ButtonFieldBase.cs:
	* BoundField.cs:
	* CheckBoxField.cs:
	* TemplateField.cs:
	* ButtonField.cs: Don't bind fields in Insert state.
	Implemented CreateField and CopyProperties.
	
	* GridView.cs:
	* DetailsView.cs: Removed some unneeded interfaces. Don't
	generate the field rows if there are no items in the data source.
	Don't get the current keys until the whole control has been
	bound.

	* DetailsViewInsertedEventArgs.cs:
	* DataBoundControl.cs:	
	* ObjectDataSourceView.cs: Made some methods private.
	
	* MenuItemStyle.cs:
	* Menu.cs: Changed some properties from int to Unit.
	
	* DataControlButton.cs: javascript prefix is needed when raising
	the postback event from a link.
	
	* PagedDataSource.cs: Some fixes in Count and IsLastPage properties.
	The result was wrong when the total data source count was 0.
	
	* FormView.cs: Implemented.
	* FormViewRow.cs: Implemented.
	
	* Literal.cs:
	* Localize.cs: Fixed base interface.
	
	* BaseDataBoundControl.cs: In DataBind() call the base class
	DataBind method, so the binding context is properly set.


svn path=/trunk/mcs/; revision=43410
2005-04-21 16:14:46 +00:00
Lluis Sanchez 2ea848c73e 2005-04-14 Lluis Sanchez Gual <[email protected]>
* DetailsView.cs: Implemented support for Insert operation. 
	Added header and footer templates. Added missing style
	properties. 
	* ObjectDataSourceView.cs: Use ParameterCollection.GetValues
	to get filter values. Other minor fixes.
	* CommandField.cs: Properly render the Insert and New buttons.
	* ObjectDataSource.cs: Update the parameter collections after
	the page is loaded. This will fire the ParameterChanged event
	if needed.
	* DataBoundControl.cs: The OnDataSourceViewChanged method
	is called when the view changes, not when the datasource
	changes.
	
	* DetailsViewInsertedEventArgs.cs:
	* DetailsViewInsertEventArgs.cs: Implement Values property.
	
	* ImageField.cs:
	* AutoGeneratedField.cs
	* BoundField.cs:
	* CheckBoxField.cs:
	Take into account the Insert mode.
	
	* ParameterCollection.cs: Implemented UpdateValues and fixed
	GetValues (values can't be cached because can change).
	* Parameter.cs: Detect value changes in GetValue, and fire
	the change event if needed. Removed unused ParameterValue
	property. Other fixes.


svn path=/trunk/mcs/; revision=42997
2005-04-14 12:24:07 +00:00
Lluis Sanchez 170d79ed12 2005-03-11 Lluis Sanchez Gual <[email protected]>
* Button.cs, ImageButton.cs: Interpret PostBackOptions.ClientSubmit
	  correctly.
	* CommandField.cs: Mostly implemented.
	* Menu.cs: Use callback methods moved to ClientScriptManager.
	* DataControlButton.cs: Internal control used to implement buttons
	  for navigating in data bound controls.
	* DataControlField.cs, PagerSettings.cs: Use the new DataControlButton
	  to render the column headers.
	* CheckBox.cs, RadioButton.cs, BulletedList.cs, TextBox.cs
	  DropDownList.cs, Calendar.cs, ListBox.cs, LinkButton.cs, TreeView.cs:
	  Don't use Page.GetPostBackClientEvent
	  since it is deprecated in 2.0.
	* GridView.cs: Implemented some several interfaces.
	  Implemented support client sorting and page navigation (using callbacks).
	  Implemented the autogenerated command column using the new CommandField
	  class.
	* ButtonFieldBase.cs: Implemented.
	* GridView.js: New helper script to support client side sorting and
	  paging in the grid view.


svn path=/trunk/mcs/; revision=41698
2005-03-11 13:25:26 +00:00