Hi may I ask which version of the telerik support Editor Attribute
such as
[Editor(typeof(CustomActionEditor), typeof(UITypeEditor))]
public string FirstName {get;set;}
Also I found out the TypeConverter is not supported in WPF propertygrid as well
Thanks
George
such as
[Editor(typeof(CustomActionEditor), typeof(UITypeEditor))]
public string FirstName {get;set;}
Also I found out the TypeConverter is not supported in WPF propertygrid as well
[Description(
"The phone number of the employee in his office."
)]
[Display(Name =
"Phone Number"
, Order = 3, GroupName =
"Personal Information"
)]
[TypeConverter(
typeof
(TestTypeConvertor))]
public
string
PhoneNum
{
get
{
return
phoneNum;
}
set
{
if
(
this
.phoneNum != value)
{
this
.phoneNum = value;
}
}
}
public
class
TestTypeConvertor:TypeConverter
{
public
override
bool
CanConvertTo(ITypeDescriptorContext context, Type destinationType)
{
var i = 0;
return
base
.CanConvertTo(context, destinationType);
}
public
override
bool
CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
{
var i = 1;
return
base
.CanConvertFrom(context, sourceType);
}
}
Thanks
George