using
System;
using
System.Web;
using
Telerik.Web.UI;
namespace
RadDatePickerEditorClass
{
public class RadDatePickerEditor: GridTextColumnEditor
{
private RadDatePicker picker;
protected override void LoadControlsFromContainer()
{
this.picker = this.ContainerControl.Controls[0] as RadDatePicker;
}
public override bool IsInitialized
{
get
{
return this.picker != null;
}
}
public override string Text
{
get
{
if (picker.DbSelectedDate == null)
{
return string.Empty;
}
return this.picker.DbSelectedDate.ToString();
}
set
{
this.picker.DbSelectedDate = value;
}
}
protected override void AddControlsToContainer()
{
picker =
new RadDatePicker();
picker.Skin = "DwtDemo";
picker.EnableEmbeddedSkins =
false;
picker.CssClass =
"date-table";
ContainerControl.Controls.Add(picker);
picker.MinDate =
new DateTime(1900,1,1);
}
}
}
please suggest me how to validate this control...is it possible in this class or in server side .
Thanks in advance
Rajendra