editorTemplate(props) {
return( <div> <table className="custom-event-editor" style={{ width: '100%', cellpadding: '5' }}><tbody>
<tr><td className="e-textlabel">Tenant</td><td style={{ colspan: '4' }}>
<DropDownListComponent id="tenantName" placeholder='Choose Tenant' className="e-field" style={{ width: '100%' }} dataSource={this.props.Tenant_List_Response.TenantsList} fields={this.tenant_dropdown_fields}
change={this.LoadTenantZones} ref={(dropdownlist) => { this.tenantObj = dropdownlist; }} >
</DropDownListComponent>
</td></tr>
<tr><td className="e-textlabel">Place</td><td style={{ colspan: '4' }}>
<DropDownListComponent id="zoneId" placeholder='Choose place' className="e-field" style={{ width: '100%' }} dataSource={this.props.Tenant_ZoneList_Response} fields={this.zones_dropdown_fields}
enabled={false} ref={(dropdownlist) => { this.zoneObj = dropdownlist; }} >
</DropDownListComponent>
</td></tr>
<tr>
<td className="e-textlabel">From</td><td style={{ colspan: '' }}>
<DateTimePickerComponent id="startDateTime" className="e-start e-field" min={new Date} ></DateTimePickerComponent>
</td>
</tr>
<tr><td className="e-textlabel">To</td><td style={{ colspan: '4' }}>
<DateTimePickerComponent id="stopDateTime" className="e-end e-field" min={new Date}></DateTimePickerComponent>
</td></tr>
<tr><td className="e-textlabel"></td><td style={{ colspan: '4' }}>
<div>
<FormGroup check >
<Label check>
<input type="radio" ref={(value)=>{this.reqType = value}} id="reqtype" value="0" name="rdRequestType" defaultChecked="true" value="0" onChange={this.handleRadio} />
{' '}
Single Request
</Label>
</FormGroup>
<FormGroup check>
<Label check>
<input type="radio" ref={(value)=>{this.reqType = value}} name="rdRequestType" value="1" onChange={this.handleRadio} />
{' '}
Repeating Request
</Label>
</FormGroup>
</div>
</td></tr>
<tr className="repeat_row" ref={t => this.recCompleteObject = t} ><td className="e-textlabel"></td><td style={{ colspan: '4' }}>
<RecurrenceEditorComponent id='RecurrenceRule' ref={t => this.recObject = t} frequencies ={['weekly']} change={this.onChange.bind(this)}></RecurrenceEditorComponent>
</td></tr>
<tr><td className="e-textlabel">Comments</td><td style={{ colspan: '4' }}>
<textarea id="createdBy" ref={t => this.commentObj = t} className="e-field e-input" name="createdBy" rows={3} cols={50} style={{ width: '100%', height: '60px !important', resize: 'vertical' }}></textarea>
</td></tr>
</tbody></table>
<FormGroup check row>
<Button type="button" id="Calculate_cost_btn"className="btn btn-link CalculateCost_btn">Calculate Cost </Button>
</FormGroup>
</div>);
}