Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jun 2012
    Location
    Rio de Janeiro, Brazil
    Posts
    2

    OnItemUpdate x OnChangingValues

    Dear All,

    I'm confused.

    I need to know if an element has a new value. After this verification, I need to change its CSS class according to the new value.

    How can I work with "OnItemUpdate" and "OnChangingValues" methods at the same time?

    Is this possible?
    Last edited by Ingrid Brandao; July 12th, 2012 at 09:37 PM.

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    you can take a look to the sources of the StockListDemo to see how we handle the highlight color (green if the last_price is greater than the previous one, red otherwise)
    Search for the following code lines:


    you can find the sources of the demo for the Lightstreamer version you're using here: http://www.lightstreamer.com/distros.../StockListDemo

    If you want to check out the same demo developed with the brand new version of Lightstreamer, you can see it here: http://www.lightstreamer.com/demo/StockListDemo/ note that the code is quite different; you should be able to recognize the important bits anyway

    let me know if you have any doubt.

  3. #3
    Member
    Join Date
    Jun 2012
    Location
    Rio de Janeiro, Brazil
    Posts
    2
    Hi Mone,

    Thanks for the reply. The question was solved. .

    Ingrid Brandão

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 03:12 AM.