When setting client events in a RadTextBox and using an EmptyMessage, the EmptyMessage will trigger the event on page load. This is true for a multiple TextMode but others are untested.
Hi Daniel,
I tried to reproduce the problem with the latest version 2020.2.617 but without success. Can you please see the video attached and let me know if I am missing something?
Here you are my test content:
<telerik:RadTextBox ID="RadEditor1" TextMode="MultiLine" runat="server" EmptyMessage="Type your name here!">
<ClientEvents OnLoad="OnLoad" OnKeyPress="OnKeyPress" OnBlur="OnBlur" OnFocus="OnFocus" OnValueChanging="OnValueChanging" />
</telerik:RadTextBox>
<script>
function OnLoad() {
console.log("On OnLoad fired!");
}
function OnKeyPress() {
console.log("On Key Press fired!");
}
function OnBlur() {
console.log("On Blur fired!");
}
function OnFocus() {
console.log("On Focus fired!");
}
function OnValueChanging() {
console.log("On Value changing fired!");
}
</script>
Best Regards,
Rumen
Progress Telerik
Multiline textmode*