Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
WebData Tree: Unable to Read selected values when using Master Pages
posted

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.