Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6843399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:14:25+00:00 2026-05-27T00:14:25+00:00

I want to create a tree table to display files using backbone.js + jQuery.

  • 0

I want to create a tree table to display files using backbone.js + jQuery.

I’m having trouble with the layout. I currently have a View representing the entire table and another view representing a row.
The problem is, how do I take into account files in the folders (i.e. sub-rows in this case)? The data for files logically belongs in their folders, meaning that they would be data belonging to a row. How then do I get one row to create other rows that by html are not children, rather siblings?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:14:26+00:00Added an answer on May 27, 2026 at 12:14 am

    the problem with a table is that it is flat data, not tree data.
    i’d find a way to modify my data to be shown, from a tree into a flat structure.

    lets say your tree is a collection of folders, each with their collection of files and so on.
    why not extract it to a json blob of all files (from all folders) with the folder attributes on the file model.

    you can now perfectly loop trough your files creating new rows per file
    depending on which attributes it have you can add different things in your view, like collspans or classes for special css styling.

    another solution is to throw out the table idea, and use div or ul instead,
    then you can work with your tree structure, a div as parent, with sub elements per file / subfolder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create tree structure using web service. I have used bottom up
I want to display a file tree similarly to java2s.com 'Create a lazy file
Is it possible to create a tree resolver in SQL? I have a table:
I have a tree structure in an sql table like so: CREATE TABLE containers
i want create image animation , i have 50 images with png format now
I want to create a Java application bundle for Mac without using Mac. According
In my application,I want to display some static files(.html,.htm,.txt) which will be uploaded by
I'm trying to create a UniqueAttribute using the System.ComponentModel.DataAnnotations.ValidationAttribute I want this to be
I'm using SQL Server 2K8 and have a table used solely to generate ids
I have 2 database tables named Categories and SubCategories and I want to create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.