I am using infragistics webdatatree in the aspx page.
I need to validate the tree by checking whether the user has selected at least one of the tree nodes or not, the code to do it is,
var tree = $find("<%= igTreeSalesOrg.ClientID %>");
if (tree.get_checkedNodes().length == 0) {
document.getElementById("liNoSearchCriteria").style.display = "block";
validated = false;
}
The webdatatree id is igTreeSalesOrg.
The above code works fine for the simple aspx page, but when I place the tree control in a content panel (using master page) and place the validation
Script in the separate file the tree is not being recognized by the script.