RadGrid for ASP .NET version
RadCalendar for ASP .NET version
|
3.2 and later
1.6 and later
|
RadControls for ASP .NET AJAX version
|
2008.1.415 and later
|
.NET version
|
1.x (RadGrid and RadCalendar for ASP .NET)
2.0 and later (RadControls for ASP .NET AJAX)
|
Visual Studio version
|
2003 (RadGrid and RadCalendar for ASP .NET)
2005 and later(RadControls for ASP .NET AJAX)
|
Programming language
|
VB, C#
|
Browser support
|
all supported by RadGrid and RadCalendar for ASP .NET
all browsers supported by RadControls for ASP .NET AJAX
|
The RadGrid control supports building your own custom column editors. These are ideal if you want to customize your users' editing experience.
A custom column editor has to inherit from one of the base editor classes, our example will inherit from GridTextColumnEditor. The two most important methods that have to be overriden are AddControlsToContainer and LoadControlsFromContainer. The former has to create the editor's controls and add them to the container's controls collection. The latter extracts information from the container's controls:
Protected Overrides Sub AddControlsToContainer()
picker = New RadDatePicker
picker.ID = "editPicker"
ContainerControl.Controls.Add(picker)
End Sub
Protected Overrides Sub LoadControlsFromContainer()
picker = ContainerControl.Controls(0)
End Sub
The tricky part is to remember to set an ID to all controls that you create. This is generally a good ASP.NET programming practice and can save you a lot of hunting for postback events not being fired and viewstate not being loaded.