public override string ToScript(Control owner)
{
//if (this.Target.IsEmpty())
//{
// throw new Exception("You should define Target");
//}
return "this.{0}=new Ext.net.ProxyDDCreator({{target: {1}, config: {2}, type: {3}}});".FormatWith(
this.ClientID,
this.ParsedTarget,
new ClientConfig().Serialize(this, true),
this.InstanceOf
);
//return "this.{0}=new {1}({2},{3});".FormatWith(this.ClientID, this.InstanceOf, string.Concat("Ext.net.getEl(", TokenUtils.ParseAndNormalize(this.Target), ")"), new ClientConfig().Serialize(this, true));
}