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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:09:03+00:00 2026-05-29T08:09:03+00:00

When I update the store using storeObj.insert(modelObj) the List-panel updates itself, as it should.

  • 0

When I update the store using storeObj.insert(modelObj) the List-panel updates itself, as it should. However, Id like to see the newly added item “animate” when it appears in the view. Is there a way to accomplish this?

  • 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-29T08:09:03+00:00Added an answer on May 29, 2026 at 8:09 am

    In your model, have an extra field called newItem. So your model will be:

    Ext.regModel('Product', {
        fields: [
            **{name: 'newItem',     type: 'boolean'},**
            {name: 'name',        type: 'string'},
            {name: 'description', type: 'string'},
            {name: 'price',       type: 'float'},
            {name: 'image_url',   type: 'string'},
            {name: 'in_stock',    type: 'boolean'}
        ]
    });
    

    When you insert item into store with

    storeObj.insert(modelObj)
    

    you must have modelObj.newItem=true before inserting.

    Also, before inserting any new item in, you have to mark all the old items as “NOT NEW”. For that you may have to use a dummystore.

    Now use EXt.xTemplate like following: (for your Ext.List)

    itemTpl: '<tpl for=".">' 
        + '<tpl if="newItem==1">' 
        + '    <p color="red"> this item is new</p></tpl>' 
        + '<tpl else >
        + '    this item is old</tpl>' 
        + '</tpl>',
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list of users in local store that I need to update
I'm using Dropbox as a place to store my project and update my project
I'm using SqlBulkCopy to insert/update from a .net DataTable object to a SQL Server
i'm using Dojo 1.6 and trying to update an Html-Store with new data using
I'm constructing a small iphone app and using a singleton to store and update
I currently am using existing code that has Sql.Append(UPDATE Store SET + LogoAlign=' +
I'm using PHP, ExtJS and ajax store. It sends data (on create, update, destroy)
I store file’s attributes (size, update time…) in database. So the problem is how
I have an app on the Store for which we’re readying an update. The
I've got a class with several properties. On every value update, a Store method

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.