Welcome Guest Search | Active Topics | Sign In | Register

EO Treeview not rendered on page retrieved by XMLHttpRequest Options
Sean Clark
Posted: Tuesday, April 14, 2009 6:56:20 AM
Rank: Advanced Member
Groups: Member

Joined: 12/24/2008
Posts: 43
Hi

Is there any reason why a page containing an EO Treeview would not render the treeview when I load it using an AJAX XMLHttpRequest?

The code behind on the treeview page fires so all the server events to bind the treeview run.

I tried adding a simple tree with nodes defined in the aspx, and this still does not work. The rest of the html from the page renders fine, just not the control.

In the html rendered in the frame which is populated by the XMLHttpRequest, there is an empty DIV:

<DIV id="CMSFolders1_TreeView2" style="OVERFLOW: auto; WIDTH: 100%; HEIGHT: 100%"></DIV>

All the eo_web.ashx includes are there in the html for that div on the page.

What events in the Treeview control aren't firing?

If i render the page itself, the tree renders fine.

Kind Regards
Sean
eo_support
Posted: Tuesday, April 14, 2009 8:32:47 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Our TreeView is not simple HTML elements. Once it is rendered, all the initialization JavaScript needs to be correctly called. When the page posts back, all internal status information will also need to collected and posted back in order for server events to be properly fired. When you use XMLHttpRequest to update the TreeView, neither of these two tasks is done. To make sure they are properly done, use a CallbackPanel to update the TreeView.

Thanks!



You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.