internal override string GetClientConstructor(bool instanceOnly, string body)
{
if (this.Target.IsEmpty())
{
throw new ArgumentNullException("Target", "The Target must defined for KeyNav control");
}
if (this.IsDefault)
{
return "";
}
this.InitOwer();
string template = (instanceOnly) ? "new {1}(Ext.net.getEl({2}),{3})" : "this.{0}=new {1}(Ext.net.getEl({2}),{3});";
return string.Format(template, this.ClientID,
"Ext.KeyNav",
this.TargetProxy,
this.InitialConfig);
}