Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144005 | Apr 14,2019 06:12 AM UTC | Apr 16,2019 09:20 AM UTC | React - EJ 2 | 1 |
![]() |
Tags: Grid |
...
export class DialogTemplate extends SampleBase {
constructor() {
super(...arguments);
this.toolbarOptions = ['Add', 'Edit', 'Delete'];
this.editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Dialog', template: this.dialogTemplate.bind(this) };
this.validationRules = { required: true };
this.orderidRules = { required: true, number: true };
this.pageSettings = { pageCount: 5 };
}
dialogTemplate(props) {
console.log(this);
return (<DialogFormTemplate {...props}/>);
}
...
}
render() {
return (<div className='control-pane'>
<div className='control-section'>
<GridComponent dataSource={orderData} toolbar={this.toolbarOptions} allowPaging={true} editSettings={this.editSettings} pageSettings={this.pageSettings} actionComplete={this.actionComplete.bind(this)}>
...
</GridComponent>
</div>
</div>);
}
}
export class DialogFormTemplate extends React.Component {
...
}
render(<DialogTemplate />, document.getElementById('sample')); |
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.