ValueChange and TextChanged events are not fired when I set the value using setValue() method
check the bellow code
="text/javascript">
TextBoxTextChanged(sender, e) {
alert(
);
}
ValueTextChanged(sender, e) {
buttonOnClinetClick() {
obj.setValue(
;
>
<
/>
Hi Sai,
All client side events (for all Infragistics controls) are designed to notify application about actions of end user only. If application changes properties or calls functions which modify control, then those actions are applied unconditionally and client side events are not raised. Otherwise, application would not be able to destingish, if particular event was fired due action of end user or it is its own unconditional request to modify/adjust control.
hi
how do I achieve this? as my requirement, when i set the value, the event must fired. can you provide any sample code
If you set value in codes, then you know exactly when it happens. If want a particular handler to be invoked, then you may call that handler explicitly. For your codes it might look like below:
function buttonOnClinetClick(){ var obj = igedit_getById('WebTextEdit1'); if(!obj) return false; var old = obj.getText(); if(old == 'test') return false; obj.setValue('test'); //TextBoxTextChanged(obj); ValueTextChanged(obj); return false; }