Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:648284
More Search Options
RSS Available
Matching Posts
ASP.Net 2.0 - Treeview PopulateOnDemand doesn't work after postback
Hello All... I'm using a Treeview (ASP 2.0, VS 2005) that has the following properties set: EnableClientScript = "true" PopulateNodesFromClient = "true" PopulateOnDemand = "true" While loading nodes I set, programatically, leaf node's SelectAction to TreeNodeSelectAction.Select (I need do this to let the user select a bunch of nodes and add them to a table on the same page). I can populate the nodes (by expanding) as long as I do NOT select a leaf node. Once I select a leaf node I can no longer exapnd
Posted to
Web Forms
(Forum)
by
Kiks
on 8/3/2006
Re: TreeView select node behavior
Kiks: Hello... I'm using the treeview control in VS 2005, .Net 2.0. The treeview has several levels of nodes, which I'm loading on demand. My leaf nodes SelectAction is set to TreeNodeSelectAction.Select . The selection works fine (which of course does a post back) but then if I try to expand (i.e. load on demand thru client-side callback) the other nodes, that have leaves, will not expand....what's going on there? P.S. Everything works fine in Debug mode though, after publishing the website only
Posted to
Hosting Open Forum
(Forum)
by
Kiks
on 8/2/2006
Re: TreeView select node behavior
Hello... I'm using the treeview control in VS 2005, .Net 2.0. The treeview has several levels of nodes, which I'm loading on demand. My leaf nodes SelectAction is set to TreeNodeSelectAction.Select . The selection works fine (which of course does a post back) but then if I try to expand (i.e. load on demand thru client-side callback) the other nodes, that have leaves, will not expand....what's going on there? P.S. Everything works fine in Debug mode though, after publishing the website only, all
Posted to
Hosting Open Forum
(Forum)
by
Kiks
on 7/12/2006
Re: ASP.NET 2.0 Treeview Checkboxes - Check All - Javascript
Hockey_Scott, thanks for sharing that. I think, I already posted the full version of very lengthy solution (may be similar to your solution or not) in my ealrlier posts. But, see Davidovitz 's post of shorter and cleaner version of the function which misses the same little functionality that you are talking about. If anybody has a TOTAL solution to Davidovitz's, please post it. Thanks!
Posted to
FAQ - Frequently Asked Questions
(Forum)
by
Kiks
on 7/6/2006
Re: ASP.NET 2.0 Treeview Checkboxes - Check All - Javascript
This routine should work fine on IE and I haven't tested on any other browsers. Try using the tips that others had posted, for multi browser compatibility. In you case it looks like getElementsByTagName is returning nothing ...
Posted to
FAQ - Frequently Asked Questions
(Forum)
by
Kiks
on 4/26/2006
Re: ASP.Net 2.0, Treeview Control PopulateOnDemand with Checkboxes, scanning thru treeview for checked nodes
Danny...you are right the issue was elsewhere... It was in my sql statement, I was losing some of the parameters (when I postback) that are required in my where condition... As you mentioned in your earlier replies when it tries to create the nodes permanently, the second time, my Dataset was empty so no nodes at all.... I'm sorry for not noticing that earlier, but I'm glad, I at least caught it now... Danny, I really appreciate your time and help. Thanks much. For those who is following this thread
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
Kiks
on 4/6/2006
Re: ASP.Net 2.0, Treeview Control PopulateOnDemand with Checkboxes, scanning thru treeview for checked nodes
Sure... here it is... I've modified the sql queries a little bit (to post here), otherwise this is what I've... My Treeview tag in webform... <asp:TreeView id="TreeView1" EnableClientScript="true" PopulateNodesFromClient="true" OnTreeNodePopulate=" popNodes " ShowCheckBoxes="All" ShowLines="True" runat="server"> <Nodes> <asp:TreeNode Text="Root" SelectAction="Expand" PopulateOnDemand="True" Value="Root"/> </Nodes> </asp:TreeView> Code behind routine that populates the
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
Kiks
on 4/6/2006
Re: ASP.Net 2.0, Treeview Control PopulateOnDemand with Checkboxes, scanning thru treeview for checked nodes
Thanks again. That didn't do it either...I've tried calling my Filter() routine (that I've posted above) in the events you mentioned and also several other events...it doesn't still know the presence of the new child nodes. -- Anybody out there had this problem before, pls pls pls...reply...Thanks
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
Kiks
on 4/6/2006
Re: ASP.Net 2.0, Treeview Control PopulateOnDemand with Checkboxes, scanning thru treeview for checked nodes
I've an ImageButton, server side control and I'm trying to read thru after I click this image, i.e after the page is postback'd...even then no luck...I still have the same problem.... I've If Page.IsPostBack Then MsgBox( "Posted" ) in Page_Load event to make sure the page is being posted and the message is displayed before the execution gets to my subroutines that scan thru the nodes... I don't have any client side scripting when I click the image, though... Am I missing something? Please help. Thanks
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
Kiks
on 4/5/2006
Re: ASP.Net 2.0, Treeview Control PopulateOnDemand with Checkboxes, scanning thru treeview for checked nodes
Thanks for you reply, Danny. But, can you just tell me how do I postback the same web form without loosing my checkbox selections?
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
Kiks
on 4/5/2006
Page 1 of 2 (17 items) 1
2
Next >
TechNet Edge:
Managing Your Entire World - Tech Focus November 2009 Part 3
Channel 10:
Show Us Your Tech - Mark Pendergrast Edition
TechNet Edge:
Mark Russinovich interview at TechEd EMEA 09
TechNet Edge:
IT Manager Podcast #31: Talking About Virtualization
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 1: Introduction
WindowsClient:
MSXML XHTML DTDs - making the web better
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 10:
Ebay Launches IE8 Webslice for Holiday Shopping
Channel 10:
New Windows Smartphone Includes Built-in PowerPoint Projector
Channel 10:
Bing's Top Searches Reveal Our Celeb Obsessions
Channel 9:
Ping 39: Chrome is here, Dancing in MS Stores, Iphone & Bing
ASP.NET:
Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1
Silverlight:
Using Azure as a Silverlight Streaming replacement
Silverlight:
Building extensible Silverlight applications with MEF
TechNet Edge:
Joachim Nässlander on Live Migration
ASP.NET:
T4MVC 2.6: MVC 2 Areas support
ASP.NET:
Script# Update - v0.5.5.0
Channel 10:
Difference between DirectX 10 and DirectX 11
Channel 10:
WHS Power Pack 3 Arrives
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online