Hi,
We are using RadnumericTextbox to hold numeric value. We have formatText method on Onblur event to format the entered value.
On Form load, we have set the RadnumericTextbox as readonly (since we do not want enabled=false). Onblur event was not triggering when textbox is readonly and did not show formated text as 0.00 (since textbox is empty) till we upgrade to telerik version 2012.2.912.40
After upgrade, RadnumericTextbox is triggering onblur event even if it is readonly.
Is there any way to check whether RadnumericTextbox is readonly or not in Javascript?
Since we have many RadnumericTextbox in the form we have used generic javascript method to format a text as below
In this method, is it possible to check whether "Sender" is readonly or not to avoid formating?
Thanks
We are using RadnumericTextbox to hold numeric value. We have formatText method on Onblur event to format the entered value.
On Form load, we have set the RadnumericTextbox as readonly (since we do not want enabled=false). Onblur event was not triggering when textbox is readonly and did not show formated text as 0.00 (since textbox is empty) till we upgrade to telerik version 2012.2.912.40
After upgrade, RadnumericTextbox is triggering onblur event even if it is readonly.
Is there any way to check whether RadnumericTextbox is readonly or not in Javascript?
Since we have many RadnumericTextbox in the form we have used generic javascript method to format a text as below
function FormatText(sender, args) {
var num = sender.get_value();
if (num == "" || num == "undefined") {
num = 0.00
}
var result = num.toFixed(2);
sender.set_value( result);
sender._textBoxElement.value = num.toFixed(2);
}
In this method, is it possible to check whether "Sender" is readonly or not to avoid formating?
Thanks