Results 1 to 2 of 2

Thread: Grid: Mark cells if data changed

  1. #1
    Touch Premium Member
    Join Date
    Nov 2011
    Posts
    125
    Answers
    1

    Question Grid: Mark cells if data changed

    Hello all,

    Is it possible to mark cells if the value is updated? Now I'm showing the dirty fields but it also dirty if the value isn't changed. The data comes from a store, the store is changed on the background and the grid refresh. I that point I want to show which columns are changed.

    I hope someone could give useful advice or hints.

    Thanks.

  2. #2
    Sencha Premium User dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,255
    Answers
    27

    Default

    you would need to create a custom validator on your model for all fields called 'mustchange' and then you can apply it to each field in your model. (you can apply multiple validators on each field FYI)

    Of course this may been than you need to create a custom model just for this view, by extending the default model, however if this is the only view using this model, then do above.

    you could extend this idea to modifying your css also to colour the field or place another flag of your choosing on the cells that are not valid.
    Cloud Application Architect

    Sencha Specialist / Sencha MVP / Sencha Technical Trainer
    ExtJs Developer + Contributor since 0.2.2 - Champion of the per developer license.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •