-
July 12th, 2012, 09:33 PM
#1
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.
-
July 13th, 2012, 09:53 AM
#2
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.
-
July 14th, 2012, 10:59 PM
#3
Hi Mone,
Thanks for the reply. The question was solved. .
Ingrid Brandão
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 12:50 AM.
Bookmarks