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

  • SEARCH
  • Home
  • 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 6573289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:06:49+00:00 2026-05-25T15:06:49+00:00

So far all tests and tutorials i’ve been trying, to get the structure in

  • 0

So far all tests and tutorials i’ve been trying, to get the structure in my head, show me that a view is bound to 1 model.

lets say i have a small app to store and manage contact details (an address book)
i have multiple users that can login
and they each have their own collection of contacts.

the user detail view would be bound to the user model
same goes for contacts

but say i would like to show a grid combining those two
X axis showing all contacts in the app
Y axis showing all users,

how does this work? do i need to create a new model for this, to bind to a new view?

you get the idea, its just a theoretical example i am not building that app but its to get the idea of having a view combining multiple models

  • 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-25T15:06:49+00:00Added an answer on May 25, 2026 at 3:06 pm

    In that case, I’d consider a dynamic model with both of your sub-models. In your route handler, you could do something like this:

    var model = new Backbone.Model();
    model.set({contacts: new ContactsModel(), users: new UsersModel()});
    var view = new GridView({model: model});
    

    Of course, there is nothing stopping you from passing in the models separately:

    var contacts = new ContactsModel();
    var users = new UsersModel();
    var view = new GridView({model: contacts, users: users})
    

    I still prefer the composite approach of the first because it doesn’t conflate what the model is.

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

Sidebar

Related Questions

All the documentation I've found so far is to update keys that are already
So far during my site development I have been storing all my jQuery functions
I want to get all conflict documents from a Notes database. So far, i've
I produce server software and have been fine with all Linux environments so far,
We have a Perl program that ran well on all Windows platforms so far.
As far as I know, it is possible to run tests for either all
We are trying to integrate tests in our daily builds using TestComplete, so far
I have been trying to find a book or web reference that gives me
I have a project that the tests are far from ideal, It takes around
There are several major unit tests frameworks, but as far as I know all

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.