Jul 10, 2013, 5:16 PM
[CLOSED] TextField in codebehind
Hi,
I am creating a TextField in codebehind and I run into a few issues:
When I try to set the Vtype, I can't use the following
For other properties on other fields, I can use
Also, the Validator property is read-only. Is that by design? That means that I can't do this
Another minor thing is the code assist tooltip that pops up in VS when hovering over the Margin property: it says "Specifies the margin for this component. The margin can be a single numeric value to apply to all sides or it can be a CSS style specification for each style, for example '10 5 3 10'.". This property is an int? so it won't accept a string. MarginSpec seems to be the proper way to set the margins with a string so the "...or ....." should be removed.
Thanks,
Vince
I am creating a TextField in codebehind and I run into a few issues:
When I try to set the Vtype, I can't use the following
Vtype = Ext.Net.ValidationType.Email.ToString()
whereasVtype = "email"
works.For other properties on other fields, I can use
Layout = Ext.Net.LayoutType.Fit.ToString()
just fine.Also, the Validator property is read-only. Is that by design? That means that I can't do this
<ext:TextField
runat="server"
Name="password2"
FieldLabel="Repeat Password"
InputType="Password"
AllowBlank="false">
<Validator Handler="return (value === this.previousSibling('[name=password1]').getValue()) ? true : 'Passwords do not match.';" />
</ext:TextField>
as in the examples...Another minor thing is the code assist tooltip that pops up in VS when hovering over the Margin property: it says "Specifies the margin for this component. The margin can be a single numeric value to apply to all sides or it can be a CSS style specification for each style, for example '10 5 3 10'.". This property is an int? so it won't accept a string. MarginSpec seems to be the proper way to set the margins with a string so the "...or ....." should be removed.
Thanks,
Vince
Last edited by Daniil; Jul 16, 2013 at 4:15 AM.
Reason: [CLOSED]