.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Collapse Expand XML Nodes/Elements

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :Sql Server
Hi everyone.  I have very minor question but kind of hoping someone knows of a solution.  So when you query an XML data type column, you'll usually get a sort of blue colored link that when clicked, will open the XML in a new window that's in a more readable and formatted version.  I'm basically just looking to see if there's a keyboard shortcut (or hotkey) to quickly collapse/expand the nodes/elements?  I can't seem to find any info on this.  Using the (+) and (-) buttons get very tedious so I'm hoping a hotkey exists for this.  I also sometimes copy XML to a new "Analysis Services XMLA Query" window that also formats the XML to be easily readable but still can't find a way to do this.  If anyone knows, I'd kindly appreciate your response.  Thanks

View Complete Post

More Related Resource Links

May i use the collapse and expand feature (like tree menu) in Report ?


HI all,

May i use the collapse and expand feature (like tree menu) at Report iam using the Report viewer  Control for displaying the Report on my Asp.net Page .


I have number records and each record have detail as i clicked or expand the record then details will be shown is it possible with report viewer control 
If any one have experince before please share the ideas.


Best Regards

How to Prevent the expand/collapse behaviour of my Custom Activity?

  How can I prevent the expand feature of my custom activity with custom designer ? I have custom WF4 activities with Custom designers. These activities are not container activities. I just want to prevent the expand feature of the same; just like Assign activity. I set the Collapsible attribute of teh ActivityDesigner false; but still it is expanding to the next level. Thanks AmbilyIT Analyst

Expand /Collapse quick launch

Hi All, Can any one help in getting the below link script for collapse and expand quick launch. I did not find any script. it says to paste script in master page using designer http://www.endusersharepoint.com/2009/03/27/deploy-custom-jquery-scripts-to-the-sharepoint-site-collection/ any idea? i want exact above link Thanks in Advance

Expand/collapse row to create a new row to display a frame in a datagrid

Hi , I am using .Net Framework 2.0 as its a old application with a datagrid in a page. I want to expand each row when clicked to create a new row to display a page in the newly created row. Can someone help me in this regard<asp:datagrid id="dgdOrders" runat="server" cellpadding="4" borderwidth="1" gridlines="Horizontal" allowpaging="True" autogeneratecolumns="false" datakeyfield="OrderNumber" cssclass="gridStyle" pagerstyle-visible="False"> <itemstyle wrap="False" cssclass="gridItemStyle" backcolor="white"></itemstyle> <alternatingitemstyle wrap="False" cssclass="gridAltItemStyle" backcolor="WhiteSmoke"></alternatingitemstyle> <headerstyle cssclass="gridHeader"></headerstyle> <columns> <asp:templatecolumn headertext="Hold"> <headerstyle horizontalalign="center"></headerstyle> <itemstyle horizontalalign="center"></itemstyle> <itemtemplate> <%# DataBinder.Eval(Container.DataItem, "IsHold") %> </itemtemplate> </asp:templatecolumn> <asp:templatecolumn headertext="Purchase Order"> <headerstyle horizontalalign="center"></headerstyle>

Disable Expand All/Collapse All workflow designer hyperlinks?

Hi,In a blog post by Matt Winker (http://blogs.msdn.com/mwinkle/archive/2009/10/20/wf4-designer-enhancements-in-vs-2010-beta-2.aspx), he notes that: "Additionally, you can choose to expand or collapse individual nodes, or go to the "Expand All" command in order to expand out the tree.  One thing to note is that we don't allow expansion inside of a flowchart because we don't yet have a mechanism that lets me rearrange all of the items around that newly expanded activity.  "My question is, will there be a way by the time RTM releases to do expansion within a flow chart?  The flow chart model is what I'll be using exclusively, so I'm quite interesetd in this.If there will not be support by the time workflow reaches RTM, is there or will there be a way that we can hide the Expand All/Collapse All hyperlinks?Thank you,Notre

Create a Tree view with expand or collapse using XSLT


I have created an XSLT file to show the contents of xml in HTML format in the form of a tree. Now, my requirement is to add expand or collapse capability to this output(html) using XSLT and Javascript. The sample output looks like this:

Resource Center

Collapse all the nodes on load in XSLT


I have created an xslt file to format xml file. My ewquirement is to show that xml in a tree format. That I have achieved. But, when I click on the root node, it will show all subnodes(which are by default expanded). I want all subnodes need to be collapsed by default on clicking of root node. Similarly, on clicking of subnode, it should be expanded with contents and subnodes of this node to be collapsed by default and so on.

How can I achieve this? 

programmatically expand/collapse the collapsiblepanelextender


using c#.net/asp.net 2005.

I have a collapsiblepanelextender that is working well when the user clicks on the "expand" and "collapse" buttons on the screen, however I would like to programmatically expand and collapse the collapsiblepanelextender in the c# code-behind.  Has anyone done this before?

I am typing the name of the collapsiblepanelextender in the code behind function and intellisense is not even showing that control as being a control that I can access from the aspx page so not certain why this is happening.

when I look in the aspx page the collapsiblepanelextender has a red squiqqly error line under it that says (when you mouse over it): "element 'collapsiblepanelextender' is not a known element. this can occur if there is a compilation error in the website"

but the panel works well when the user clicks it to expand and collapse and there are no compilation errors on the page, otherwise the page would not run, does this make sense?



Expand /Collapse quick launch


Hi All,

Can any one help in getting the below link script for collapse and expand quick launch.

I did not find any script. it says to paste script in master page using designer


any idea?

i want exact above link

Thanks in Advance

SSRS 2008 - Drilldown - Grouping collapse/expand /title/header



I have been able to have a report with Group / Group count and Details.

The issue I have are:

1. When I collapse the drilldown to get only the Group and Group countit just collapse per page not the full report...I would like to have all Group / Group count on 1 or two pages and then epand as needed...

2. The title and column headers appear only on the first page... how to get it on all pages?

What is the "Linked Report" doing? Is it another kind of Drill Down..?

I need to have my summary report per OS for example shows only the OS Name then Count and if I click to expand I will have the servers in this group... but it seems working reverse way, I mean you have the details and if you collaspe you have the summary but this seems limited per page...



System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 Support

Expand All/Collapse All Buggy


I've scoured the forums and no one has ever answered this question for other people who have posted it.

I have a SSRS 2005 report where the user can choose to expand all groups by selecting yes or no in a parameter called ExpandAllGroups. It works great for the most part - if they chose to expand all groups, then all four groups and my details line all show as expected.

However, once they've run the report with everything initially expanded and they decide to collapse group #1 it will actually still retain all the space that the three child groups occupied. So if it took up five pages total and you collapse it, it still has five pages of white space showing between what you just collapsed and the next grouping. My report is massive and I have one group that if you collapse it then you have something like 50 pages of white space until the next group.

The only suggestion I've seen is setting up your visibilty property via the group dialog box rather than the visibility properties for the row. I did this to no avail. It doesn't appear to matter if I do it on the row or on the group, it still fails to collapse correctly.

Anyone found a solution to this?? There were about a half dozen previous posts with the same issue but no resolution was ever posted.




How to change th SPGridView Expand/Collapse images


Hi All,

How I can change the SPGridView Expand/Collapse Image for a SPGridView, By default it will display the "plus and minus" images, I want to use my own image insteadof this, Please let me the solution.



How to track Collapse/ Expand event of AJAX Collapsible Panel Extender to call javascript ?



I am working with AJAX Panel Collapsable panel extender.

The Panel which is to be collapsed/Expanded using AJAX panel Extender contains one custom control, containing 3 Radio buttons one of them is set checked through a javascript function when page loads. I have kept the default property of AJAX collapsable panel as Collapsable.

Script for AJAX Collapsible Panel Extender is as follow. 

 <ajax:CollapsiblePanelExtender ID="cpeSOP" runat="Server" CollapseControlID="pnlCollapsable"
   CollapsedSize="0" Collapsed="True" CollapsedImage="~/public/img/arrowRightWhite.gif"
   ExpandControlID="pnlCollapsable" ExpandDirection="Vertical" ExpandedImage="~/public/img/arrowDownWhite.gif"
   ImageControlID="Image1" SuppressPostBack="true" TargetControlID="pnlSearchCriteria">

But problem is that when page loads, collapsible panel gets collapsed but it resets the radio buttons in custom control. i.e. First radio button does not get checked. Script for Collpsable panel is as follow. I want to call some javascript code when the panel is Collapsed or Expanded. Is there any way to track Coll

Animating expander collapse/expand in xaml ?


I'm trying to make a custom template for Expander to animate the collapse and expand (as in windows xp). When i add the following trigger :

<Trigger Property="IsExpanded" Value="True">
DoubleAnimation Storyboard.TargetName="Content"

Collapse / Expand parameters



I've indented the ParameterCaptions on my parameter lists and it works fine, but there are 100's of levels, so this makes the UI extremely non-friendly to the user.

I know that Microsoft has not built in capability to expand or collapse parameter lists, but is there any way to build this in with custom code or by combining it with a different product?

Any ideas are welcome.



Louis Young

Auto expand / collapse treeview



I created a sitemap with a treeview navigation in my aspx site.  I  am hoping someone can show me the code to put in a Masterpage so that when I expand a child node, all other nodes collapse, and when I expand another node, the previous expanded node collapses. I have an example here of what I am trying to accomplish:


I am using asp.net with VB.

I will appreciate any assistance with this.  I have been scouring the internet looking for a solution, but so far haven't found anything that works.

Thank you


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend