CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
web_forms
getting_started
data_presentation_controls
dotnetnuke
data_access-sql_server_sql_server_express_and_sqldatasource_control
security
client_side_web_development
novell-support-groupwise-6x-clients
data_access-data_access_and_objectdatasource_control
asp-net_ajax-asp-net_ajax_control_toolkit
novell-support-netware-6x-install-upgrade
asp-net_ajax-asp-net_ajax_discussion_and_suggestions
novell-support-netware-6x-administration-tools
master_pages_themes_and_navigation_controls
configuration_and_deployment
novell-support-netware-client-winnt-2x-xp
novell-support-groupwise-7x-clients
asp-net_ajax-asp-net_ajax_ui
novell-support-edirectory-netware
community-free_for_all
visual_studio_2005
novell-support-groupwise-6x-install-setup
data_access-xml_and_xmldatasource_control
control-cancel
novell-support-iprint
advanced_asp-net-crystal_reports
data_access-xml_web_services
microsoft-public-access
novell-community-chat
state_management
novell-support-netware-6x-abends-hangs
dotnetnuke-getting_started
novell-support-groupwise-6x-gwia
-net_languages-c
novell-support-identity-manager-engine-drivers
novell-support-groupwise-discontinued
advanced_asp-net-architecture
opensuse-org-suse-linux-support-install-configure-administration
dotnetnuke-custom_modules
novell-support-groupwise-7x-install-setup-admin
novell-support-netware-6x-storage-media
novell-support-groupwise-6x-agents
installation_and_setup
data_access-access_databases_and_accessdatasource_control
windows-hosting_open_forum
visual_web_developer_2005_express
novell-support-groupwise-6x-web-access
novell-support-netware-6x-server-backup
macromedia-dreamweaver
novell-support-netware-5x-administration-tools
novell-support-ifolder
novell-support-bordermanager-install-setup
novell-support-imanager
microsoft-public-dotnet-framework-aspnet
novell-support-netware-5x-install-upgrade
novell-support-cluster-services
novell-support-bordermanager-proxies
novell-support-newsflash
advanced_asp-net-sql_server_reporting_services
microsoft-public-dotnet-languages-csharp
web_parts_and_personalization
about_this_site-feedback_on_this_website
ibm-software-websphere-portal-server
novell-support-netware-dns-dhcp
novell-support-zenworks-desktops-4x-app-launcher
-net_languages-visual_basic_-net
advanced_asp-net-custom_server_controls
novell-support-bordermanager-vpn
novell-support-ndps-neps
microsoft-public-sqlserver-programming
novell-support-netware-webserver
community-jobs
novell-support-netware-4x
advanced_asp-net-mobile_and_handheld_devices
internet_explorer_web_controls
novell-support-zenworks-desktops-4x-install-setup
novell-support-edirectory-linux
novell-support-groupwise-7x-gwia
development_tools-web_matrix_general_discussions
microsoft-public-access-formscoding
macromedia-flash
community-announcements
portal_starter_kit
novell-support-zenworks-desktops-4x-management-agent
novell-support-zenworks-patch-management
novell-support-native-file-access
microsoft-public-access-queries
microsoft-public-access-forms
novell-support-groupwise-7x-web-access
novell-support-netware-small-business-6x
data_access-active_directory_and_ldap
novell-support-edirectory-windows
novell-support-groupwise-7x-agents
novell-support-ichain
data_access-oracle
novell-support-zenworks-desktop-management-6x-imaging
novell-support-groupwise-7x-wireless
novell-support-netware-5x-abends-hangs
advanced_asp-net-localization
novell-support-zenworks-desktop-management-7x-imaging-server-nw-win




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: Date Entered: 7/11/2007 12:04:11 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 3 Views: 28 Favorited: 0 Favorite
4 Items, 1 Pages 1 |< << Go >> >|
"rmdw" <>
NewsGroup User
What is the current state of Persistent Treeviews?7/11/2007 12:04:11 AM

0

I need to implement a treeview to display a large amount of hierarchical data.  The tree will have 4 levels, with the top 3 being branches and the bottom level being a leaf.  When the user clicks on a leaf then the disconnected dataset will be queried and the associated data returned will be used to populate a bunch of other controls on the page.  The user will then be free to edit this data at will.  The user will also be free to add and delete leafs.

To accomplish this, my first inclination was to use the Microsoft Treeview control sitting inside of an Ajax UpdatePanel.  But I've since read that this treeview is not compatible with this panel.

An entire page refresh is fine, as long as the treeview returns to exactly the same state it was in before.

But I'm wondering what experience others have had with a similar situation?  Did you use the MS Treeview control and apply some "tricks" to it to get it to maintain its state or did you opt to use another treeview control, such as the one from Telerik?

Robert Werner
Vancouver, BC 


Robert Werner
Vancouver, BC
www.pocketpollster.com
"Johnson2007" <
NewsGroup User
Re: What is the current state of Persistent Treeviews?7/12/2007 4:31:31 AM

0

I have experience a similar scenario. I have used the dhtmltree control. Try to use DhtmlTree control. More information at http://www.scbr.com/docs/products/dhtmlxTree/index.shtml.


Johnson
"akjoshi" <>
NewsGroup User
Re: What is the current state of Persistent Treeviews?7/12/2007 1:22:59 PM

0

As far as maintaining state is the issue you can do it, check this post -

http://forums.asp.net/t/1022893.aspx


Aj
"rmdw" <>
NewsGroup User
Re: What is the current state of Persistent Treeviews?7/12/2007 4:09:43 PM

0

I just looked extensively through that posting.  Thank you for it.  It's interesting but cannot possibly restore the tree to precisely the state it was in before the Postback.  How can I say that definitively? Because there's no Javascript.

Imagine a treeview has assorted nodes open and is scrolled about 2/3 of the way down the tree.  Now imagine the selected node in one of 3 positions:

  1. Toward the top of the [parent] panel
  2. In the middle of the panel
  3. Toward the bottom of the panel

In each case the top edge of the selected node is precisely 'Y' pixels below the top of the panel.  If the code doesn't restore this distance exactly then the treeview will appear to jump around, which is disconcerting to the user.

From another article I found a solution that goes as far as maflones' does, but with much less code:


1. In the <@Page> tag, add:  MaintainScrollPositionOnPostback="true"
 

2. Add this JavaScript code into the <head> section (where "treeView1" is the name of the treeview and "panel1" is the name of its parent panel) :

  <script type="text/javascript">
    function LoadEvent()
    {
        try
        {  
            var elem = document.getElementById('treeView1_SelectedNode');  
            if(elem != null )  
            {    
                var node = document.getElementById(elem.value);    
                if(node != null)    
                {      
                    node.scrollIntoView(true);
                    panel1.scrollLeft = 0;    
                }  
            }
        }
        catch(oException)
        {
        }
    }
  </script>


3. Change the <body> tag to this:  <body onload="LoadEvent()">


4. In the <asp:TreeView> definition, ensure that this is included:  EnableClientScript="true"

 

And that's it.  It works fine, albeit in the limited fashion that seems the best we can do for now.  It's quite sad that Microsoft never thought to add the capability to precisely restore it between Postbacks.

Robert W. 


Robert Werner
Vancouver, BC
www.pocketpollster.com
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:













accessing objects inside the master page from a calling form

page redirection problem

invisible backgroud image

adding a vertical menu to a master page

sitemap and security trimming

menu control not displaying properly in ie 6.0

master.page and windowsidentity doesn't work?

changing theme by buttonclick

asp:hyperlink not being recognized in firefox

compiler error message: bc30456: 'theme' is not a member of 'asp.index_aspx'.

problem with form inserting to db in master page?

menu overflow

multiview is not accesseble

where do i put my scripts?

need advice on making my app look "pretty"

defaultbutton with masterpages

error: asp.net runtime error: theme 'idm' cannot be found in the application or global theme directories

treeview goes blank

can sitemap,menu,treeview declaritively open node in new "_blank" window?

how to stretch a background image?

bug of treeview - child node could not expand after click on hyperlink of root node

navigation needs upgrades

createuserwizard and loginview in masterpage

navigating from master pages and will display to the placeholder

remove background layout

cannot show checkbox in treeview

invalid postback or callback argument please help this is very annoying.

changing master page removing content area

sitemap problems

accessing control from base class

combining a treeview with a table or css

add atribute to menu's items(asp.net2)

how to make the url in the statusbar to disapear?

menu's backcolor

treeview - remove tooltip

code behind the masterpage don't execute

sqlsitemapprovider tip ...

finding themes and skins

hide nodes from the menu

partial page refresh of content in a master page. possible?

problem using java script on master page...(not in the content....)

creating page specific menus from site nodes

using separate file as content

block page by direct url

multiple sitemap entries for same url

master pages - contentplaceholder control size in visual studio 2005 design mode

master page error

master page with third party client side post question

gap between dynamic menu items

is there a way to identify which css is being applied to something?

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT