Dec 17, 2013, 8:08 PM
Problem with Parameter in Mode Raw in RemoteValidation
Hi,
the following example causes a JS error evaluating the epressione Value="#{txtTag}.text"
It only works if I use parameters in Mode=Value.
I'm doing something wrong or is it a bug?
Tks
the following example causes a JS error evaluating the epressione Value="#{txtTag}.text"
It only works if I use parameters in Mode=Value.
I'm doing something wrong or is it a bug?
<ext:TextField ID="txtNumero_Civ_NewItem" runat="server" Width="120" IsRemoteValidation="true" AllowBlank="false" ValidateOnBlur="false" ValidateOnChange="false" IndicatorIcon="BulletRed" IndicatorTip="It is required field">
<RemoteValidation OnValidation="checkField_txtNumero_Civ_NewItem_DirectEvent">
<ExtraParams>
<ext:Parameter Name="TAG" Value="#{txtTag}.text" Mode="Raw" />
</ExtraParams>
</RemoteValidation>
<Listeners>
<RemoteValidationValid Handler="this.setIndicatorIconCls('icon-tick');" />
<RemoteValidationInvalid Handler="this.setIndicatorIconCls('icon-bulletcross');" />
<Change Handler="if (newValue == '') {this.setIndicatorIconCls('icon-bulletred'); this.reset()}" />
</Listeners>
<DirectEvents>
<Blur OnEvent="calculateGeolocalizationCoordinateCivico_DirectEvent" />
</DirectEvents>
</ext:TextField>
protected void checkField_txtNumero_Civ_NewItem_DirectEvent(object sender, RemoteValidationEventArgs e)
{
TextField field = (TextField)sender;
string sTAG = e.ExtraParams["TAG"];
...
e.Success = True;
...
}
Tks
Last edited by ADV; Dec 24, 2013 at 2:16 AM.