Dill down table

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Dill down table

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:15 pm

by Torrie Moore >> Thu, 20 May 1999 23:19:09 GMT

I'm wanting to implement a tree type structure in a table. The user can view a list of customers, double click on a customer and the table would insert lines below the customer showing all invoices for example. The user could then double click on the invoice to see all lines. Does anyone know if there is a table control that offers this fuctionality. Or a list box that allows colums?? I think that it would need different column setup for each level in the tree. Another option would be a table that allows text in one cell to continue over the cell to its right if that cell was empty.

Can anyone offer a solution to this problem

Thanks

Torrie Moore
Concept Engineering Ltd
torrie@concept-eng.co.nz

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Dill down table

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:15 pm

by Craig Shearer >> Fri, 21 May 1999 0:29:22 GMT

While I don't have a solution, I'd vote for some sort of native JADE control that did this.

You could, of course, simulate a tree structure in a table control by using spaces at the front of the text to get a certain indent. Pretty yucky though!

Another possibility - is there a Microsoft OCX that does this?

Craig.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Dill down table

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:15 pm

by Hayden >> Thu, 20 May 1999 16:32:37 GMT

Torrie,
we've implemented this to some degree by putting a "+" in the first column. We load all rows that we want to display, and make the "sub rows" invisible (rowVisible attrib).

When we click on the "+", it becomes a "-", and the invisible rows immediately below become visible. We control which rows we know are
sub rows by the text value in the first column. One space for rows
that cannot be opened, + for rows that can, and two spaces for rows
that are sub rows.

As all rows are loaded at the start, this can be a little slow if you have hundreds and thousands of rows, but is fast and reliable once you get going, as the table is handling it all.

Hope this helps


Hayden McInnes
Focus Business Solutions
http://www.focussoft.co.nz

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Dill down table

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:15 pm

by Allistar Melville >> Wed, 26 May 1999 18:51:02 GMT
I'm wanting to implement a tree type structure in a table. The user can view a list of customers, double click on a customer and the table would insert lines below the customer showing all invoices for example. The user could then double click on the invoice to see all lines. Does anyone know if there is a table control that offers this fuctionality. Or a list box that allows colums?? I think that it would need different column setup for each level in the tree. Another option would be a table that allows text in one cell to continue over the cell to its right if that cell was empty.

Can anyone offer a solution to this problem

Thanks

As Hayden has mentioned, we have done this with our tables. One
problem is that is is only one level deep.

Another control we have made is a list box which has a table embedded inside it. We use this for having a hierachical "tree" displayed in
the list box portion, with checkboxes in the table portion. Quite a
handy control, it could be expanded to allow the table portion to be
more flexible.

Allistar.

------------------------------------------------------------------
Allistar Melville (BSc) Home: allistar@ihug.co.nz \_
Software Developer Work: allistar@focussoft.co.nz </'
Auckland, NEW ZEALAND /)
(/`
"Science built the Academy, superstition the inquisition."
[Robert G. Ingersoll] ------------------------------------------------------------------


Return to “Tips and Techniques”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests