Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148969 | Nov 9,2019 08:01 PM UTC | Nov 12,2019 10:08 AM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: Schedule |
<input type = "text" id="classOptions" class="e-field" name="classOptions"/>
onPopupOpen(args: PopupOpenEventArgs): void {
if (args.type === 'Editor') {
let classOptElement: HTMLInputElement = args.element.querySelector('#classOptions');
let classOptObject : DropDownList = new DropDownList ({ fields: { text: 'option', value: 'id' },
dataSource: <any>this.classOptions});
classOptObject.appendTo(classOptElement)
}}
In the above example, I am adding a dropdownlist component to my custom editor window. How can I add a change listener to it? Usually, we could use the onChange event, but I am not sure how I could use it INSIDE the onPopupOpen event. Can you provide a working example?
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.