Introducing grid client-side editing support with Q3 2008

Posted by: the telerik blogs, on 27 Oct 2008 | View original | Bookmarked: 0 time(s)

With our upcoming version of RadControls for ASP.NET AJAX (early November) you will be able to bind our grid even if the grid is in edit mode. RadGrid will locate automatically all built-in column editors (GridNumericColumn, GridDropDownColumn, GridDateTimeColumn, etc.) and you can get old/new values directly from the grid client-side API.

You can use client-side editing completely codeless with templates as well. The requirement here is to set ID for the control to be equal to desired data field.

Example:

<telerik:GridTemplateColumn HeaderText="CompanyName">
<EditItemTemplate>
<telerik:RadTextBox ID="CompanyName" runat="server" />
</EditItemTemplate>
</telerik:GridTemplateColumn>

We have introduced also three new client-side methods for GridTableView to get new values, old values and keys for particular GridDataItem.

Example:

var newValues = $find("RadGrid2").get_masterTableView().extractValuesFromItem(0) ; // get first item new values

var newValues = $find("RadGrid2").get_masterTableView().extractOldValuesFromItem(0) ; // get first item old values

var newValues = $find("RadGrid2").get_masterTableView().extractKeysFromItem(0) ; // get first item keys

I've made small example using two grids (master/detail) both bound completely client-side to illustrate this new functionality:

Untitled

Enjoy!

[Download]

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 972 | Hits: 12

Similar Posts

  • ClientIDMode in ASP.NET 4.0 more
  • RadControls for WPF/Silverlight Q3 Beta 2 release is live! more
  • Intersoft Solutions Announces WebUI Studio 2009 Service Pack 1 more
  • Multi-Targeting Support (VS 2010 and .NET 4 Series) more
  • Multiple child views with RadGridView for WinForms more
  • Silverlight 3 and WCF Faults more
  • Silverlight Release History : Q2 2009 (version 2009.2.701) more
  • Web.UI ASP.NET Grid: Synchronize Checkbox States with Row Selection more
  • Intersoft Solutions Releases WebUI Studio 2009 The Worlds Most Innovative Web Development Toolkit more
  • WPF Release History : Q1 2009 SP2 (version 2009.1.526) more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD