Hi Guys,
I know there is another post which is requesting that date format can be modified via metadata on the TKProperty which would be great.
In the mean time i have got this working as follows:
@ViewChildren('form') formCmps: QueryList<dataformAngularModule.RadDataFormComponent>;
ngAfterViewInit(): void {
var simpleDateFormat = new java.text.SimpleDateFormat("dd-MMM-yyyy", java.util.Locale.US);
this.formCmps.changes.subscribe((comps:QueryList<dataformAngularModule.RadDataFormComponent>)=>{
comps.forEach((form=>{
//TNF FORM
let datePicker: EntityProperty = form.dataForm.getPropertyByName("date");
datePicker.editor.android.setDateFormat(simpleDateFormat);
}));
});
}
The above works fine however i am struggling with using something similar in a child component. For example
<StackLayout>
<action-edd-cmp [model]="model" *ngIf="currentAction === 'edd'"></action-edd-cmp>
</StackLayout>
I know it is due to the lifecycle hooks but i dont know if there is any other way of setting dates in radform date picker?