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 8282185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:17:11+00:00 2026-06-08T10:17:11+00:00

I am displaying a travel itinerary (like one below) using a day model objects

  • 0

I am displaying a travel itinerary (like one below) using a day model objects as part of Itinerary collection.

Day 1 5 Aug 2012 ‘Travel to SFO’
Day 2 6 Aug 2012 ‘Blah Blah’
Day 3 7 Aug 2012 ‘Blah Blah’
Day 4 8 Aug 2012 ‘Travel back home!’

Question:

  1. When I remove say Day 3 from above plan (this is not a issue), I want the Day 4 to be renamed as Day 3 and its date changed to 7th Aug instead of 8th Aug.

What is the best/backbone way to achieve it?

  1. When Day 3, is deleted, does it mean that Day 4’s index is now reduced by 1? or is the index to access Day 4 remains same?
  • 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-06-08T10:17:12+00:00Added an answer on June 8, 2026 at 10:17 am

    Have a backbone collection "Days" with the model being "day". so when you delete a model. you refresh the views, which binds with the collection.

    Yes, the Day 4’s index is reduced by one.

    Edit-1

    The Days collection has a function which binds to the delete function of its models.
    This function calculates the indexes and the hashes.

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

Sidebar

Related Questions

I'm displaying my categories using the wp_list_categories function like so: <?php wp_list_categories('selected=6&title_li='); ?> Now,
I'm displaying HTML content using a UIWebView and would like some action to occur
When displaying all articles of a specific month (given through the urls like this
I'm displaying records in a grid format from an ActiveRecord list using each_slice. What
I'm displaying a webpage (html) kept in my assets folder using a webView .
Displaying a rectangle and binding Width, Height, Angle to a view model class works
For displaying the character & in a button as text, i am using &&
While displaying the download status in a window, I have information like: 1) Total
I am displaying mySQL in an html table. I would like to change the
I am displaying a collection in a listview, and each listview item has its

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.