Articles in this section
Category / Section

How to enable or disable a hyperlink in OLAP Grid based on condition?

1 min read

Enabling or disabling a hyperlink present in OLAP Grid, based on a condition, can be achieved through the following script at sample level.

C#

this.OlapGrid1.ClientSideOnHyperlinkEnabling = "ValidateHyperLink";

VB

Me.OlapGrid1.ClientSideOnHyperlinkEnabling = "ValidateHyperLink"

JS

<script type="text/javascript">
    function ValidateHyperLink(cellValue) {
        var parsedNo = "";
        for (var n = 0; n < cellValue.length; n++) {
            var i = cellValue.substring(n, n + 1);
            if (i == "1" || i == "2" || i == "3" || i == "4" || i == "5" || i == "6" || i == "7" || i == "8" || i == "9" || i == "0")
                parsedNo += i;
        }
        if (parseInt(parsedNo) < 16000000)
            return false;
    }
</script>

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied