This is a migrated thread and some comments may be shown as answers.

Find TreeList fails

1 Answer 30 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 12 Aug 2016, 08:36 AM

Hi

I have a working treelist on the page and need to add some functionality via buttons so when one is pressed some javascript attempts to find the treelist control using the standard $find(controlname) syntax.  This fails and just returns null.  I have double checked the clientID is correct and when using document.getElementById it returns the element part so I know that is OK.

Other than this the actual control with paging etc works just fine on the page.  

Any suggestions on what might cause this?

Regards

Jon

1 Answer, 1 is accepted

Sort by
0
Jon
Top achievements
Rank 1
answered on 12 Aug 2016, 08:40 AM
Ignore me.  Even though everything worked I had failed to notice that there had been a prior js error that seemed to have this knock on effect.
Tags
TreeList
Asked by
Jon
Top achievements
Rank 1
Answers by
Jon
Top achievements
Rank 1
Share this question
or