Accessing and editing infragistics controls in java scripts might have given you a hard time since you can't access them same as you access html or asp.net controls. But if you have looked at the documentation of infragistics controls, you know this is easier than accessing and editing (values) html controls. Look at the following sample code.
HTML markup:
Javacript function:
function checkValue()
{
var tbxPrice= igedit_getById(<%= "'" + tbxPrice.ClientID + "'" %>);
if (tbxPrice != null && tbxPrice.getValue() > 100)
{
tbxPrice.setValue(100);
}
}
These are the Methods used which are given by infragistics libraries.
igedit_getById() - get the object reference of control
getValue() - get the value
setValue() - set the control
HTML markup:
Javacript function:
function checkValue()
{
var tbxPrice= igedit_getById(<%= "'" + tbxPrice.ClientID + "'" %>);
if (tbxPrice != null && tbxPrice.getValue() > 100)
{
tbxPrice.setValue(100);
}
}
These are the Methods used which are given by infragistics libraries.
igedit_getById() - get the object reference of control
getValue() - get the value
setValue() - set the control