This is a migrated thread and some comments may be shown as answers.

How to trigger onChange event?

0 Answers 695 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
rick
Top achievements
Rank 1
rick asked on 24 Sep 2020, 02:32 PM

Hello there,

have no idea to trigger the change event of dropdownlist

I need to set other inputs of my form ,if the code has a specific value,  at the onchange event
My html:

 

<div class="row">
    <div class="col-md-6">
        <mat-label id="title-t" class="required"></mat-label>
        <kendo-dropdownlist
            id="tID"
            [data]="dataSourceList"
            [textField]="'name'"
            [valueField]="'code'"
            formControlName="tList"
            (valueChange)="onChangeList($event)">
        </kendo-dropdownlist>
    </div>
</div>t;

My ts:

 

public onChangeList(e){
var t_code= e.code;
   console.log(t_code);
}

i want call event change in another function, something like this:
//tID.kendoDropDownList.change();

 

 

 

 

 

thanks,

Federico

No answers yet. Maybe you can help?

Tags
DropDownList
Asked by
rick
Top achievements
Rank 1
Share this question
or