Closed winsonet closed 7 years ago
I want to use the custom template as below:
[RequiredIf("order_cat != 'A'")] [UIHint("FormDateTime")] public DateTime? order_start_date { get; set; }
and I know I need to handle the data-val-* in the template, but how can I auto get these data-val-* attributes from Model? I don't want to hard-code in the template, thanks!
data-val-*
sorry, I have solved my problem, thanks!
I want to use the custom template as below:
and I know I need to handle the
data-val-*
in the template, but how can I auto get thesedata-val-*
attributes from Model? I don't want to hard-code in the template, thanks!