Hi,
I have a regular validation control inside a tooltip.
What I like to do is only show the tooltip when there is a message in the validation control. I have added this method on OnClientBeforeShow event of the tooltip
or per one of your samples
but neither of this works. The tooltip pops up with empty content when I enter the text box.
any suggestions?
I have a regular validation control inside a tooltip.
What I like to do is only show the tooltip when there is a message in the validation control. I have added this method on OnClientBeforeShow event of the tooltip
function CheckIfShow(sender, args) |
{ |
var summaryElem = document.getElementById("rfvFirstName"); |
//check if summary is visible |
if (summaryElem.style.display == "none") |
{ |
//API: if there are no errors, do not show the tooltip |
var tooltip = $find("<%= RadToolTip1.ID %>"); |
tooltip.hide(); |
} |
} |
or per one of your samples
//check if summary is visible |
if (summaryElem.style.display == "none") |
{ |
//API: if there are no errors, do not show the tooltip |
args.set_cancel(true); |
} |
but neither of this works. The tooltip pops up with empty content when I enter the text box.
any suggestions?