Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
770
ValueChange and TextChanged events are not fired when I set the value using setValue() method
posted

ValueChange and TextChanged events are not fired when I set the value using setValue()  method

check the bellow code

 

 

 

 

 

 

 

 

 

 

 

<script type

="text/javascript">

 

 

function

TextBoxTextChanged(sender, e) {

alert(

 

'text changed'

);

}

 

 

 

function

ValueTextChanged(sender, e) {

alert(

 

'Value changed'

);

}

 

 

function

buttonOnClinetClick() {

 

 

 

var obj = igedit_getById('WebTextEdit1'

);

obj.setValue(

 

'test'

);

 

 

 

return false

;

}

 

 

 

</script

>

 

 

 

 

 

 

 

 

<

 

ig:WebTextEdit ID="WebTextEdit1" runat="server" Height="34px" Width="225px"

>

 

 

<ClientSideEvents TextChanged="TextBoxTextChanged" ValueChange="ValueTextChanged"></ClientSideEvents

>

 

 

</ig:WebTextEdit

>

 

 

 

<br

/>

 

 

 

 

 

<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="return buttonOnClinetClick();"

/>

 

 

Parents
  • 24497
    Suggested Answer
    posted

    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.

Reply Children