Results 1 to 5 of 5

Thread: How can i highlight updated data in grid panel ?

  1. #1

    Default How can i highlight updated data in grid panel ?

    hello i am using ext grid panel. can i highlight changed value?

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    GridPanel only exists in ExtJs. Please post in the correct forum.

    GridPanel already does highlight changed fields in records.

  3. #3

    Default

    i'am sorry "Animal",

    when i say highlight i mean how can i change, changed value background color ?

    by the way i am using grid refresh

    PHP Code:
    // Refresh
        
    var mainquoterefresh = {
        
    run: function(){
            
    store.load();
        },
        
    interval10000

    like attached image,

    grid-1.png

    thank you for reply

  4. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Try a Column renderer

  5. #5

    Default

    PHP Code:
        // Changed value bg
        
    function change(val){
            if(
    val MYOLDVALUE){
              return 
    '<span style="background-color:green;">' val '</span>';
            }else if(
    val 0){
              return 
    '<span style="background-color:red;">' val '</span>';
            }
            return 
    val;
        } 
    everything ok, but how can i get MYOLDVALUE before refresh?

    maybe i can use session for each data...


    Thank you

Similar Threads

  1. Pushing updated data to ext grid from server?
    By mlab in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 26 Oct 2010, 12:54 PM
  2. Editor Grid is not loading the data once it is saved or updated
    By gajendrabang in forum Ext 3.x: Help & Discussion
    Replies: 11
    Last Post: 5 Oct 2009, 11:03 PM
  3. Highlight the updated record in Editor Grid
    By lazyProgrammer in forum Ext 2.x: Help & Discussion
    Replies: 15
    Last Post: 9 Oct 2008, 4:36 AM
  4. Highlight Row in Data Grid?
    By Westside in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 20 Sep 2008, 4:32 PM
  5. Grid is showing old records when the grid store data were updated
    By bkraut in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 4 Jul 2008, 4:49 AM

Posting Permissions

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