collapse

Moving up multiple parents in jQuery - more efficient way?

Hey guys, So, I have a navigation that is a list and has sublists and sublists. Basically, the nav is by default collapsed, but if people click on a page that's in a sublist, I want to show the parent list. And if it's a sublist of a sublist, I need both parent lists to show. I have it set up, but, I don't like putting 5 .parent().pare...

Collapse/Visible UserControls on ButtonClick with MVVM - no swap mechanism -

Hello, In my scenario I have a MainView + MainViewModel, UserControl1 + UserControl 2. In the MainView I have 2 buttons labeled: Button_ShowUserControl1 + Button_ShowUserControl2. At the lower part of the MainView I have a "ContentGrid" which takes/should_take... every UserControl. My goal: When Button_ShowUserControl1 is clicked Us...

Visual C# Express 2008

hi, when coding in Visual C# Express 2008 you can expand/collapse code segments using the +/- symbols on the left hand corner of the text-editor. These appear automatically when a function is created. Is their anyway i can manually add a expand/collapse point to a code segment. ...

efficient loop collapse

in certain applications, I have need to collapse nested loops into one while retaining individual index information. for j in N: for i in M: ... A(i,j) ... // Collapse the loops for ij in MN: ... A(i,j) ... so have looked at the obvious ways to recover i,j from ij using division/modulo (expensive operation) and using if stat...

Expand collapse of table rows in Datatable JSF

Hi, I have been trying to achieve this functionality of expand/collapse of table rows using core JSF and also I have to preserve the sorting. Is there a way in core JSF where I can achieve this functionality? ...

jquery treeview plugin change link behavior (avoid collapse)

Hello, I am using the jQuery Treeview plugin. Have a look to the "Sample 1 - default" provided on the demo page of the plugin http://jquery.bassistance.de/treeview/demo/. In my case all folders and files are links. If I click for example on the expanded "Folder 2" it will first collapse and then follow to the link location. The behaviou...

CSS: Help with aligning div (expand - collapse) boxes next to each other

Hi everybody, I am having some trouble with aligning two div boxes next to each other;. Or more correctly, I have aligned my two “head” boxes next to each other but my problem is that I am using them as a expand-collapse container and those boxes will not align correctly. I am posting the entire code beneath and would be grateful if so...

Let expand-collapse boxes move / push main content down and up

Hi everyone, I just had a question about aligning two expand-collapse boxes and got an answer and it worked but not I have run into another problem. When I expand, my boxes the text underneath it (the main content) is not pushed down but more “nudged to the right”. The problem is clear in this code beneath: <!DOCTYPE html> <html> <he...

alternative to visibility:collapse not working on IE and Chrome

The following page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <STYLE type="text/css"> tr.cccc { visibility: collapse; } </STYLE> <BODY> <TABLE border="1"> <TR class="cccc"> <TD>one</TD> </TR> </TABLE> </BODY> </HTML> works only in Firefox. IE always di...

Help with Collapse and Expand Accordion at same time using JQuery (demo)

I'm stuck on an Expand/Collapse accordion using JQuery. After the initial headline is clicked and it expands, if you click to another headline it will collapse the former headline completely FIRST then it will expand the headline you clicked. This collapse first then expand second technique is very distracting and what should happen is...

CSS margin collapsing?

I'm working with Google Chrome on OS X, and I seem to be running into a margin collapse issue. I have two divs stacked on top of each other, both with a margin-top of 2px and a margin-bottom of 5px, and both with a 1px border. According to my arithmetic, there should be 1+1+2+5=7px of space between the "content" areas of the divs, since ...

WPF TreeView databinding to hide/show expand/collapse icon

I implemented a WPF load-on-demand treeview like described in this (very good) article. In the mentioned solution a dummy element is used to preserve the expand + icon / treeview item behavior. The dummy item is replaced with real data, when the user clicks on the expander. I want to refine the model by adding a property public bool Has...

ASP.NET Treeview Control not expanding on click

I having an issue with the ASP.NET Treeview control. I create the treeview just fine but the nodes will not expand or collapse. I see there is a javascript error but it is for line 1 character 0 of the webpage, there is nothing at line 1 character 0. I am using the ASP:Treeview control in conjunction with the Telerik controls, but I'm n...

Recursive algorithm for coalescing / collapsing list of dates into ranges.

Given a list of dates 12/07/2010 13/07/2010 14/07/2010 15/07/2010 12/08/2010 13/08/2010 14/08/2010 15/08/2010 19/08/2010 20/08/2010 21/08/2010 I'm looking for pointers towards a recursive pseudocode algorithm (which I can translate into a FileMaker custom function) for producing a list of ranges, i.e. 12/07/2010 to 15/07/2010, 12/08/...

jQuery Collapse (with cookies), default open instead of closed?

Hi. I've got a jQuery snippet which basically allows a user to toggle a div, open or closed - their preference is saved in a cookie. (function($) { $.fn.extend({ collapse: function(options) { var defaults = { inactive : "inactive", active : "active", head : ".trigger", group ...

Fixing Django Admin collapse error.

Hi. I've been following the Django tutorial, and so far everything's been working as planned. Except "collapse"ing. On my admin page, I get the error in my Javascript Console: Uncaught TypeError: Object #<an Object> has no method 'first' collapse.min.js:1 I'm assuming this is a bug in jQuery, or the collapse script, however my qu...

NetBeans shortcut key for collapsing/expanding a method

JAVA - NETBEANS This is an IDE question I am always working with collapsed methods, because I want to be able to see my methods all together. This is a little time consuming because I have to use the mouse to scroll up to the declaration of the method and click on the - (minus) icon. And then respectively go to the method I want to wor...

expanding/collapsing div using jQuery

example of what I'm trying to do I'm trying to expand and collapse a <div> by clicking some text inside the <div>. The behavior right now is very odd. For example, if I click the text after the <div> is expanded... the <div> will collapse and then expand again. Also, if I click somewhere inside the div after it is expanded, it will coll...

Collapse summary block in visual studio 2010

I have been asking Mr Google about how I shall do if I want my block to be collapse but not the code block. I write my code in C#. ...

Expand Collapse table individually and together

Hi, I need to be able to expand and collapse certain sections of a table individually by pressing that section's button but if a user wants to see all the data in the table, they hit one button at the top of the table to expand all the information. The use should then still be able to collapse sections they are not interested in and if...