Commit Graph
51 Commits
Author SHA1 Message Date
Igor Zelmanovich 51ce33d915 2007-04-12 Igor Zelmanovich <[email protected]>
* GridView.cs:
	when databound with AutoGenerateColumns = true, 
	data source enumerator created only once.	


svn path=/trunk/mcs/; revision=75865
2007-04-18 10:26:36 +00:00
Marek Habersack 03e6d60374 2007-04-06 Marek Habersack <[email protected]>
* GridView.cs: don't render invisible fields. Fixes bug #80061.

	* DetailsView.cs: don't render invisible fields.


svn path=/trunk/mcs/; revision=75464
2007-04-05 22:13:37 +00:00
Igor Zelmanovich 627c448387 2007-04-05 Igor Zelmanovich <[email protected]>
* GridView.cs:
	* BaseDataBoundControl.cs:
	Break recursion when the property is set from within the OnSelect handler 
	in user's code. fixes bug #81175.	

svn path=/trunk/mcs/; revision=75422
2007-04-05 10:54:30 +00:00
Igor Zelmanovich fc6b1309c0 2007-03-20 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: PageIndex considers PageCount.	

svn path=/trunk/mcs/; revision=74689
2007-03-20 14:55:19 +00:00
Marek Habersack beabee8a4f 2007-03-20 Marek Habersack <[email protected]>
* BaseDataBoundControl.cs: fix as per MSDN - the property is set
	only if data binding doesn't occur.

	* DataBoundControl.cs: avoid endless recursion here. Fixes bug #81175


svn path=/trunk/mcs/; revision=74679
2007-03-20 12:16:16 +00:00
Igor Zelmanovich c3da319cdb 2006-02-18 Igor Zelmanovich <[email protected]>
* GridView.cs: IsBindableType for decimal returns true.

svn path=/trunk/mcs/; revision=73083
2007-02-18 16:13:53 +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
Igor Zelmanovich db6918a3f7 2007-01-31 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: 
	RowDataBound is fired for PagerRow.
	Styles are applied using MergeWith instead CopyFrom 
	to allow using custom styles for rows in code-behind.

svn path=/trunk/mcs/; revision=72022
2007-01-31 13:19:47 +00:00
Igor Zelmanovich acd03f1c5b 2007-01-31 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: RowCommand event is fired properly.


svn path=/trunk/mcs/; revision=72020
2007-01-31 12:23:11 +00:00
Igor Zelmanovich ae1fdb2c7e 2007-01-31 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: created rows are added in table after initialization.
	* BoundField.cs: 	

svn path=/trunk/mcs/; revision=72018
2007-01-31 11:31:46 +00:00
Konstantin Triger 645443b229 don't force creating rows collection when SelectedIndex changes; RequireBinding on select
svn path=/trunk/mcs/; revision=71189
2007-01-17 13:42:45 +00:00
Igor Zelmanovich af12bdb519 2007-01-10 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: header and footer does not appear in no items.
	* CompositeDataBoundControl.cs:


svn path=/trunk/mcs/; revision=70773
2007-01-10 15:02:50 +00:00
Igor Zelmanovich 3f540072ae 2007-01-09 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: SelectedDataKey.


svn path=/trunk/mcs/; revision=70755
2007-01-10 08:12:50 +00:00
Igor Zelmanovich 6c1f56b5fc 2007-01-08 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: show all rows when AllowPaging=false

svn path=/trunk/mcs/; revision=70660
2007-01-08 16:16:12 +00:00
Igor Zelmanovich 5d78df5438 2007-01-08 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed:
	ReadOnly property is false for AutoGeneratedColumn if field is DataKey.
	causesValidation parameter is considered properly in UpdateRow.
	OldValues contains readonly fields values

svn path=/trunk/mcs/; revision=70653
2007-01-08 14:28:13 +00:00
Igor Zelmanovich 75ac380f91 2006-12-31 Igor Zelmanovich <[email protected]>
* ContainedTable.cs:
	* DataControlButton.cs:
	* DetailsView.cs: fixed EnablePagingCallbacks
	* DetailsView.js:
	* GridView.cs:
	* GridView.js: fixed EnableSortingAndPagingCallbacks

svn path=/trunk/mcs/; revision=70284
2006-12-31 14:44:01 +00:00
Igor Zelmanovich 499d009db5 2006-12-28 Igor Zelmanovich <[email protected]>
* DetailsView.cs:
	* GridView.cs:
	* FormView.cs:
	control's behavior depends on using DataSource or DataSourceID 
	property for binding	


svn path=/trunk/mcs/; revision=70165
2006-12-28 13:28:38 +00:00
Igor Zelmanovich 92555407d3 2006-12-11 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: Update works not only for EditRow
	* TemplateField.cs:
	* CompositeDataBoundControl.cs:		


svn path=/trunk/mcs/; revision=69315
2006-12-11 12:37:59 +00:00
Igor Zelmanovich debc8019ba 2006-11-20 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: header, footer and empty rows are databound.


svn path=/trunk/mcs/; revision=68198
2006-11-20 15:10:35 +00:00
Igor Zelmanovich cc6e7588a9 2006-11-14 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: Rows property, DataBinding flow.
	* DataBoundControl.cs:
	* BaseDataBoundControl.cs:		
	

svn path=/trunk/mcs/; revision=67854
2006-11-14 17:18:01 +00:00
Igor Zelmanovich 4465add3ba 2006-11-09 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: DataKeys, PageCount, DataBinding flow.


svn path=/trunk/mcs/; revision=67542
2006-11-08 16:46:25 +00:00
Igor Zelmanovich b2cf26705d 2006-11-01 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: UpdateRow, DeleteRow, RowCreated.


svn path=/trunk/mcs/; revision=67218
2006-11-01 14:03:44 +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 901f16172b 2006-10-12 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: EnableSortingAndPagingCallbacks feature.
	when postback is invoked after callback control state is restored
	properly. 


svn path=/trunk/mcs/; revision=66613
2006-10-12 16:52:49 +00:00
Igor Zelmanovich 4df8f73c78 2006-10-12 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: Sorting feature.
	When sorting EditIndex and PageIndex are reseted


svn path=/trunk/mcs/; revision=66597
2006-10-12 12:22:09 +00:00
Igor Zelmanovich e2c1398ca0 2006-10-12 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: Sorting feature.
	CreateDataSourceSelectArguments considers SortExpression and SortDirection.
	(corresponding test does not work because bug in ObjectDataSourceView)


svn path=/trunk/mcs/; revision=66594
2006-10-12 10:33:06 +00:00
Igor Zelmanovich 64fa0dbf78 2006-10-11 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed: 
	CreateDataSourceSelectArguments works according to MSDN.
	(corresponding test does not work because bug in ObjectDataSourceView)


svn path=/trunk/mcs/; revision=66553
2006-10-11 14:15:06 +00:00
Igor Zelmanovich ed0e3c4510 2006-10-08 Igor Zelmanovich <[email protected]>
* FormView.cs:
	* GridView.cs:
	* DetailsView.cs: 
	* PagerSettings.cs: 
	reverted r66222, problem solved in r66283: command buttons inherit ForeColor
		

svn path=/trunk/mcs/; revision=66404
2006-10-08 11:33:33 +00:00
Igor Zelmanovich 15465b8d66 2006-10-05 Igor Zelmanovich <[email protected]>
* GridView.cs:
	* DataControlButton.cs:
	* DataControlField.cs:
	implemented PrepareControlHierarchy()
	styles are applied correct
	command buttons inherit ForeColor


svn path=/trunk/mcs/; revision=66283
2006-10-05 12:44:39 +00:00
Igor Zelmanovich 664094d178 2006-10-04 Igor Zelmanovich <[email protected]>
* FormView.cs:
	* GridView.cs:
	* DetailsView.cs: 
	* PagerSettings.cs: 
	corrected pager rendering: Color style applied to A tag,
	Input type="image" used if ImageUrl is not empty.
		

svn path=/trunk/mcs/; revision=66222
2006-10-04 14:27:00 +00:00
Igor Zelmanovich 08d07daabd 2006-10-04 Igor Zelmanovich <[email protected]>
* GridView.cs: corrected rendering 
	* ContainedTable.cs: added new helper class 
		

svn path=/trunk/mcs/; revision=66218
2006-10-04 11:37:21 +00:00
Gonzalo Paniagua Javier 11a89e04a7 2006-07-21 Gonzalo Paniagua Javier <[email protected]>
* DetailsView.cs:
	* GridView.cs:
	* PagedDataSource.cs:
	* FormView.cs:
	* ImageButton.cs:
	* LinkButton.cs: implement GetPostBackOptions for the 2.0 controls that
	support it. The GridView control will no longer throw an exception when
	rendered in the paging mode. Patch by Marek Habersack. Fixes bug #78288.


svn path=/trunk/mcs/; revision=62863
2006-07-21 14:33:24 +00:00
Vladimir Krasnov 19af9ddb15 * GridView: fixed DataKeyNames property, moved to ControlState
fixed PageCount property, initial PageCount ahould be zero
fixed SelectedDataKey, should throw exception if not initialized
fixed CreateColumns, wrong order of columns
fixed CreateControlStyle,
fixed InitializePager, no columnspan attrib on only one column
fixed LoadControlState, SaveControlState added DataKeyNames
fixed Render, RenderGrid should render within div tag
implemented GetPostBackOptions
* DataControlButton.cs: fixed Render, fixed style for img button

svn path=/trunk/mcs/; revision=62699
2006-07-18 11:44:41 +00:00
Konstantin Triger ed0ed68f3e * GridView.cs: always create Header/Fotter rows, but render only when
ShowHeader/Footer is true. Compute Header/Footer rows from rows
       	collection.
* CheckBoxField.cs: add override to ApplyFormatInEditMode,
      	add ToolTip and Text to the created CheckBox,
       	wrap exception thrown in OnDataBindField in httpException.

svn path=/trunk/mcs/; revision=62378
2006-07-09 13:05:20 +00:00
Konstantin Triger fd9a34a86e * DataBoundControl.cs: implement MarkAsDataBound and consider it while
setting RequiresDataBinding in OnLoad event.
* GridView.cs: DataBind rows before other control can access the data.
* BoundField.cs: add unique ID to control for postback parameters.

svn path=/trunk/mcs/; revision=62201
2006-07-03 13:56:24 +00:00
Konstantin Triger acdc6554d5 set the row index from GridRowView if CommandArgument does not contain this information
svn path=/trunk/mcs/; revision=61619
2006-06-11 07:53:47 +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
Gonzalo Paniagua Javier d873b87c5f 2005-09-09 Gonzalo Paniagua Javier <[email protected]>
* GridView.cs: don't duplicate class attribute. Fixes bug #75936.


svn path=/trunk/mcs/; revision=49845
2005-09-10 03:37:41 +00:00
Lluis Sanchez ada5b7053c 2005-08-30 Lluis Sanchez Gual <[email protected]>
* SubMenuStyle.cs, MenuItemStyle.cs, TreeNodeStyle.cs:
	  Don't use the obsolete IsSet method.
	* Menu.cs: Implement IPostBackEventHandler.RaisePostBackEvent.
	* CheckBox.cs: Implement some 2.0 methods.
	* GridView.cs: Removed some "throw new NotImplementedException"


svn path=/trunk/mcs/; revision=49115
2005-08-30 11:50:32 +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
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 af7e54758c 2005-06-06 Lluis Sanchez Gual <[email protected]>
* GridView.cs:
	* FormView.cs:
	* DetailsView.cs: Bind the control after creating all child
	 controls.
	* DataBoundControl.cs: Call OnDataBinding and OnDataBound in
	the correct methods.
	* BaseDataBoundControl.cs: Don't call DataBind nor OnDataBound
	in this class. This is done in DataBoundControl. All this fixes
	bug #75076.


svn path=/trunk/mcs/; revision=45481
2005-06-06 11:29:51 +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 cc0de288d6 2005-04-08 Lluis Sanchez Gual <[email protected]>
* DetailsView.cs: Initial implementation.
	* ObjectDataSourceView.cs: Notify changes in the parameters.
	* DetailsViewDeletedEventArgs.cs, DetailsViewUpdatedEventArgs.cs,
	  DetailsViewDeleteEventArgs.cs, DetailsViewUpdateEventArgs.cs:
	  Implemented some properties.
	* GridView.cs: Added null check in SelectedValue. Don't return null
	  for empty DataKeyNames list.
	* DetailsViewRowCollection.cs: Implemented.
	* DetailsViewRow.cs: Implemented.
	* ButtonFieldBase.cs: By default button field don't have headers.
	* BoundField.cs: Don't bind header fields.	  


svn path=/trunk/mcs/; revision=42709
2005-04-08 21:28:40 +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 eefe5a8604 2005-04-01 Lluis Sanchez Gual <[email protected]>
* ButtonField.cs: Mostly implemented.
	* DataControlFieldHeaderCell.cs: Implemented.
	* ObjectDataSourceView.cs: Initial implementation.
	* DataControlButton.cs: Added support for real buttons.
	* Label.cs, DataControlField.cs: Flush.
	* ObjectDataSource.cs: Initial implementation.
	* HiddenField.cs: Added class stub.
	* GridView.cs: Load autogenerated field properties before
	creating the children, to make sure that column info is ready.
	* ControlParameter.cs: Implemented Evaluate method.
	* ImageField.cs: Added class stub.
	* BoundField.cs: Added HtmlEncode property.
	* DataControlFieldCell.cs: Moved AccessibleDataControlFieldCell
	to its own file.
	* CheckBoxField.cs: Mostly implemented.
	* TemplateField.cs: Added class stub.
	* ObjectDataSourceSelectingEventArgs.cs: Added missing property.
	* ObjectDataSourceMethodEventArgs.cs: Fixed base class.
	* Parameter.cs: Added internal GetValue method (Evaluate is protected)


svn path=/trunk/mcs/; revision=42469
2005-04-01 17:29:21 +00:00
Lluis Sanchez 587f051b70 2005-03-23 Lluis Sanchez Gual <[email protected]>
* DataControlField.cs: Added missing InsertVisible property.
	* AutoGeneratedFieldProperties.cs: Implemented.
	* PagerSettings.cs: Minor fix.
	* GridView.cs: Implemented support for autogenerated fields, templates,
	accessible headers. Implemented paging using PagedDataSource.
	Implemented missing overridable methods.
	* AutoGeneratedField.cs: Initial implementation.
	* BoundField.cs: Added ReadOnly property.
	* PagedDataSource.cs: Implemented 2.0 api.
	* DataControlFieldCell.cs: Implemented AccessibleDataControlFieldCell
	cell class to be used by accessible headers.
	* TableCell.cs: Removed unneded constructor. If the cell is bound to
	a template, call the default RenderContents method.


svn path=/trunk/mcs/; revision=42154
2005-03-23 17:20:57 +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
Lluis Sanchez 6813c16ab1 2005-03-04 Lluis Sanchez Gual <[email protected]>
* DataKey.cs: Implemented.
	* XmlDataSourceView.cs: Implemented support for row pagging.
	* Table.cs: Fixed attribute value.
	* DataControlField.cs: Added support for sorting headers.
	* ChildTable.cs: Created.
	* ListControl.cs: Delay selection assignment, since control state
	is now loaded before view state.
	* GridViewDeleteEventArgs.cs, GridViewUpdateEventArgs.cs,
	GridViewDeletedEventArgs.cs, GridViewUpdatedEventArgs.cs: Implemented
	several missing properties.
	* PagerSettings.cs: Fully implemented.
	* BaseDataList.cs: Added null check.
	* GridView.cs: Implemented more functionality.
	* BoundField.cs: Added support for cell editing.
	* StringArrayConverter.cs: Implemented.
	* DataKeyArray.cs: Implemented.
	* BaseDataBoundControl.cs: Reset the requires binding flag before
	executing the query. This avoids recursive query calls.
	* GridViewRow.cs: Handler commands raised from row childs.


svn path=/trunk/mcs/; revision=41455
2005-03-04 18:05:31 +00:00