I have a page containing an update panel within which I've put a popup extender that contains a checkbox treeview. I need to load the treeview on a button click code behind (c#) which means the treeview items are not populated at pageload. Obviously because
of the update panel, I get no page refresh when I click on the button to load the treeview (desired behaviour). However, this makes that ckeckboxs won't work very well, i.e. when a parent checkbox is ticked it should but it doesn't check all child checkboxes.
This is because the javascript file that handles the checkbox behaviour cannot find items of the treeview since they weren't generated on pageload. As an example document.getElementById(nodeId) is null!
leila
Member
76 Points
183 Posts
Checkbox Treeview within popup extender within update panel
May 01, 2012 09:06 AM|LINK
Hi,
My question is as follows:
I have a page containing an update panel within which I've put a popup extender that contains a checkbox treeview. I need to load the treeview on a button click code behind (c#) which means the treeview items are not populated at pageload. Obviously because of the update panel, I get no page refresh when I click on the button to load the treeview (desired behaviour). However, this makes that ckeckboxs won't work very well, i.e. when a parent checkbox is ticked it should but it doesn't check all child checkboxes. This is because the javascript file that handles the checkbox behaviour cannot find items of the treeview since they weren't generated on pageload. As an example document.getElementById(nodeId) is null!
I hope the description was clear.
Thanks in advance for your help.
javascript updatepanel treeview
Song-Tian - ...
All-Star
43715 Points
4304 Posts
Microsoft
Re: Checkbox Treeview within popup extender within update panel
May 02, 2012 06:47 AM|LINK
Hi,
Could you post the related code? So I may reproduce that on my side.
javascript updatepanel treeview
Feedback to us
Develop and promote your apps in Windows Store
chetan.sarod...
All-Star
66609 Points
11270 Posts
Re: Checkbox Treeview within popup extender within update panel
May 03, 2012 03:18 AM|LINK
According to AJAX Documentataion Treeview control is Compatible with UpdatePanel
http://www.asp.net/AJAX/Documentation/Live/overview/UpdatePanelOverview.aspx
For more info
http://www.codeproject.com/KB/aspnet/TreeViewAjax.aspx
http://forums.asp.net/t/1294112.aspx
http://forums.asp.net/t/1117969.aspx
http://www.codeplex.com/ajaxtreeview/
http://www.codeproject.com/KB/webforms/ClientSideTreeView.aspx
</div>javascript updatepanel treeview
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
leila
Member
76 Points
183 Posts
Re: Checkbox Treeview within popup extender within update panel
May 03, 2012 08:12 AM|LINK
Thanks for your reply,
I found a js file that fixed my problem.