Oct 12, 2012, 10:03 AM
[CLOSED] MVC RAZOR remotevalidation datefield select event
Hi,
this doesn't seem to work :
If I remove
when I select a date from the popup.
I need the remotevalidation to work with "SELECT" AND when typing the date ......
How can I do this ?
Regards,
Holger
PS: When I look at the network traffic, no XHR is happening......
this doesn't seem to work :
Html.X().DateFieldFor(m => m.ES_TRANS_DATUM)
.ID("date_ES_TRANS_DATUM")
.LabelAlign(LabelAlign.Top)
.Width(150)
.FieldLabel("Transportdatum")
.Control(c =>
{
c.IsRemoteValidation = true;
c.RemoteValidation.Url = "/Home/isDateValid";
c.RemoteValidation.Method = Ext.Net.HttpMethod.POST;
c.RemoteValidation.ValidationEvent = "SELECT";
c.MsgTarget = MessageTarget.Under;
//c.RemoteValidation.Json = true;
}
)
The above doesn't work ! Any ideas why ? What am I doing wrong ?If I remove
c.RemoteValidation.ValidationEvent = "SELECT";
it works only when I'm typing, but notwhen I select a date from the popup.
I need the remotevalidation to work with "SELECT" AND when typing the date ......
How can I do this ?
Regards,
Holger
PS: When I look at the network traffic, no XHR is happening......
Last edited by Daniil; Oct 12, 2012 at 5:09 PM.
Reason: [CLOSED]