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

TreeList does not respond to client click until after postback

1 Answer 56 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 11 Mar 2013, 10:52 PM
I'm using a RadTreeList using a series of bound columns to display a self-referential DataSet. The binding appears to work fine, and the data shows up correctly, but on the client side after the page has rendered I cannot click on anything in the RadTreeList. However, if I use another control on the page to cause a postback, immediately thereafter the RadTreeList is fully functional. I can see in the console that some Java errors are being thrown on the initial page load and not thereafter - complaining that the helpfully-named variables 'a' and 'b' are not initialized. The postback does not even need to cause a rebind; it appears that any sort of postback will make the RadTreeList functional.

Has anyone else seen this behavior, or have any ideas on how to fix it? The RadTreeList is currently inside an ASP UpdatePanel, but I have already tried removing all of the UpdatePanels from the page and I still get the same behavior. I have also tried removing every bit of custom CSS from the project and had no change in behavior there either.

1 Answer, 1 is accepted

Sort by
0
Peter
Top achievements
Rank 1
answered on 12 Mar 2013, 05:57 PM
Well, I found the answer. Originally I had the RadTreeList inside an HTML-defined tree structure (<table><tr><td> etc). This was causing a Javascript error on page load, trying to get_element for some objects. Once I changed all of the table references to ASP table objects, everything worked fine again.
Tags
TreeList
Asked by
Peter
Top achievements
Rank 1
Answers by
Peter
Top achievements
Rank 1
Share this question
or