ASP.NET Controls
visit Telerik website
MVC
Silverlight
WPF
ORM
Reporting
All Products
UI Components
ASP.NET AJAX
ASP.NET MVC
Silverlight
WinForms
WPF
Productivity
JustCode
Data
OpenAccess ORM
Reporting
Automated Testing
WebUI Test Studio
TFS Tools
Work Item Manager
Project Dashboard
Content Management
Sitefinity .NET CMS
Search Examples
select
Control
Example
select
Download
Videos
Help
Forums
Grid
Overview
Outlook Grid
Web Mail Grid
Hierarchy with Templates
Filter Templates
Persisting Grid Settings
What's new
Rating column
Header Context Filter Menu
.NET 3.5
.NET 3.5 Client-side Data Binding
Entity Framework CRUD Operations
LinqToSql CRUD Operations
LinqToSql Manual CRUD Operations
Performance
Virtual scrolling with client binding
Client-side Binding and Caching
300 000 rows with LINQ
Using RadInputManager
ViewState Optimization
Shared RadDatePicker
Master/Details Client-side Data Binding
Migration from GridView
Migration from GridView
Columns
Column Types
Attachment column
Calculated Columns
Footer Aggregates
Column Formatting
Column/Row Resize/Reorder
Header Context Menu
Rows
Selected Rows Style
Accessing Cells and Rows
Items Drag-and-drop
Populating with Data
Client-side binding
Declarative Binding
Programmatic Binding
Server-side binding
Simple Data Binding
Advanced Data Binding
Various DataSources
Master/Detail Grids
Programmatic Creation from XML
WebService binding
Client Binding
Server Binding
Sorting
Basic Sorting
Programmatic Sorting
Paging
Basic Paging
Alphabetic Pager
Slider/Advanced-style Pager
Pager Template
Customizing the Pager
Custom Paging
SEO-friendly Paging
Scrolling
Scrolling
Virtual Scrolling and Paging
Frozen Columns
Selecting
Client-side Row Selection
Server-side Row Selection
Exporting
Export to PDF
MS Excel/MS Word/CSV
Filtering
Basic Filtering
Filtering in Hierarchy
Filtering Template Columns
Google-like Filtering
Filtering with RadFilter
Hierarchy
Declarative Relations
Programmatic Binding
Several Tables at a Level
Client-side Hierarchy Loading
Mixed Hierarchy Loading
NestedViewTemplate Relations
Self-referencing Hierarchy
Autogenerate hierarchy
Grouping
Outlook-style Grouping
Group By Expressions
Client Group Load
Group Footers
Insert/Update/Delete
Automatic Operations
Extracting values
Using Column Editors
Using Server-side API
Edit Form with Multiple Columns
Command Item
User Control Edit Form
Form Template Edit Form
PopUp Edit Form
Edit on Double-click
Editing with external form
Update/Insert/Delete in Hierarchy
Client-side Insert/Update/Delete
Client edit with batch server update
Client-side Inline Delete
Editing XML Using XmlDataSource
Validation
Flexible Server-side Validation
Programmatic creation
On PageInit
On PageLoad
Creating Hierarchy Programmatically
Layout
CardView
ListView/DataList View
Displaying Pivot Data
Client-Side API
Client Objects and Events
Client-side API
Keys/Values Client-side
Accessibility and Internationalization
Keyboard Support
Accessibility Compliance
Right-to-left Support
Appearance/Styling
Custom Skin
Styling Header, Footer and Pager
Styling Edited Rows
Application scenarios
Binary Images and Upload in Grid
AJAX-enabled Context Menu
Grid Filtered by Combo
Load on Demand Grid in Combobox
Combo in Grid
Window Editing
Resizing RadGrid in RadSplitter
RadNumericTextBox for Footer Totals
Grid and Aggregate Chart
Chart in TemplateColumn
Tooltipified RadGrid
RadToolBar as Command Item
Insert with Tooltip
Overview
Ajax
BinaryImage
Calendar
Captcha
Chart
ColorPicker
ComboBox
Dock
Editor
FileExplorer
Filter
FormDecorator
Grid
Input
ListBox
ListView
Menu
PanelBar
Rating
Rotator
Scheduler
Slider
Spell
SiteMap
Splitter
TabStrip
ToolBar
ToolTip
TreeView
Upload
Window
XmlHttpPanel
Grid
/ User Control Edit Form
Rate this demo:
1
2
3
4
5
Feedback
Run example in:
C#
VB.NET
Change Skin:
Vista
Black
Default
Forest
Hay
Office2007
Outlook
Simple
Sitefinity
Sunset
Telerik
Vista
Web20
WebBlue
Windows7
This example shows how:
One can adopt user controls as RadGrid's edit/insert forms.
Add new record
Refresh
TOC
FirstName
LastName
Hire Date
Title
Edit
Ms.
Nancy
Davolio
5/1/1992 12:00:00 AM
Sales Representative
Delete
Edit
Dr.
Andrew
Fuller
8/14/1992 12:00:00 AM
Vice President, Sales
Delete
Employee Details
Personal Info:
Country:
City:
Region:
Home Phone:
Birth Date:
Title Of Courtesy
Dr.
Mr.
Mrs.
Ms.
Notes:
Andrew received his BTS commercial in 1974 and a Ph.D. in international marketing from the University of Dallas in 1981. He is fluent in French and Italian and reads German. He joined the company as a sales representative, was promoted to sales manager in January 1992 and to vice president of sales in March 1993. Andrew is a member of the Sales Management Roundtable, the Seattle Chamber of Commerce, and the Pacific Rim Importers Association.
Address:
908 W. Capital Way
Company Info:
FirstName:
Last Name:
Hire Date:
Title:
Edit
Ms.
Janet
Leverling
4/1/1992 12:00:00 AM
Sales Representative
Delete
Edit
Mrs.
Margaret
Peacock
5/3/1993 12:00:00 AM
Sales Representative
Delete
Edit
Mr.
Steven
Buchanan
10/17/1993 12:00:00 AM
Sales Manager
Delete
Edit
Mr.
Michael
Suyama
10/17/1993 12:00:00 AM
Sales Representative
Delete
Edit
Mr.
Robert
King
1/2/1994 12:00:00 AM
Sales Representative
Delete
Edit
Ms.
Laura
Callahan
3/5/1994 12:00:00 AM
Inside Sales Coordinator
Delete
Edit
Ms.
Anne
Dodsworth
11/15/1994 12:00:00 AM
Sales Representative
Delete
Example Source Code & Description
Instructions
Description
DefaultCS.aspx
DefaultCS.aspx
DefaultVB.aspx
EmployeeDetailsCS.ascx
EmployeeDetailsCS.ascx
EmployeeDetailsVB.ascx
DefaultCS.aspx.cs
DefaultCS.aspx.cs
EmployeeDetailsCS.ascx.cs
DefaultVB.aspx.vb
DefaultVB.aspx.vb
EmployeeDetailsVB.ascx.vb
Open in new window
Telerik RadGrid supports custom edit forms for management of item content. You can switch the type of the edit forms using the
GridEditFormType
Enumeration.
In the example above the edit form is a
WebUserControl
specified by the
UserControlName
property. The same user control will be used for the insert form as well. The user control implements a public
DataItem
property through which Telerik RadGrid sets the correct values for the editor controls (when loading the user control). This allows the developer to write binding expressions to bind the server controls in the user control to the corresponding
DataItem
.
Note that WebUserControl custom edit form is not supported with simple data-binding (calling DataBind()). See the
Simple data binding
demo from the
Populating with data
section for more info about the limitations of this binding mode.
These documentation topics discuss in detail how to update/insert records using
WebUserControl
custom edit form:
Updating values with user control edit form
Inserting values with user control edit form
Deleting records
Copyright 2002-2010 © Telerik. All right reserved |
Telerik Inc., 460 Totten Pond Rd, Suite 640, Waltham, MA 02451
www.telerik.com
|
Terms of Use
|
Contact Us