Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145808 | Jul 9,2019 11:56 AM UTC | Jul 18,2019 01:56 PM UTC | Angular - EJ 2 | 7 |
![]() |
Tags: Grid |
App.component.ts
{
field: 'OrderDate', headerText: 'Order Date',type:'date', editType: 'datetimepickeredit', edit: { params: { max: new Date() }},
format: { type: 'datetime', format: 'MM/dd/yyyy hh:mm:ss a' },
width: 170
}, |
Hi Neo,
Thanks for the update.
We are unable to reproduce the reported problem at our end with the provided information. If you could provide the following information, which would be grateful to proceed further on this.
- Complete component page of the Grid
- In case of any event handled (like actionbegin, actioncomplete), please share the complete code of them
- How the data has been bounded to the Grid? Either remote or local? Have you used the observable binding?
- Video demo of the issue
- actionFailure event of the Grid will capture all the exceptions. So we suggest to bind them to the Grid and capture the exception message returned in their arguments. Copy and share them as text file.
Regards,Seeni Sakthi Kumar S.
App.component.ts
export class AppComponent {
this.editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true, mode:'Batch' };
this.toolbar = ['Add', 'Delete', 'Update', 'Cancel'];
this.columns = [
{
field: 'OrderDate', headerText: 'Order Date', type: 'date',validationRules : {required: true, minDate: [this.customcomPareDateValue.bind(this), 'Enter a valid date'] }, editType: 'datetimepickeredit',
format: { type: 'datetime', format: 'MM/dd/yyyy hh:mm:ss a' },
textAlign: 'Center', minWidth: '230',
width: 170
},
{
field: 'ShipCountry', headerText: 'Ship Country', editType: 'dropdownedit', width: 150,
edit: { params: { popupHeight: '300px' } }
}];
}
customcomPareDateValue (args) {
//Here you can perform your validation
//based on the result return the true or false value
return args.value < '07/18/2019 00:00:00 AM'
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.