Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Oct 2010
    Location
    Karachi
    Posts
    1

    Question Previous Data Lost

    AA,

    I am currently using Light Streaming feature using Flex. Every thing is going right except one thing that is I loss the previous data.
    I have a webservice that returns some data. I use this data to populate the grid. Then I connect to Light Streamer once i do, the data that was present on the grid gets vanished and the data from Light Streamer server populates on the grid. What I want to do is that I want to keep all the data as it is and when connect to Light Streamer only those columns should be updated whose data is available on the Light Streamer server.

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    you may use different approaches to reach your goal:
    • you may use a NonVisualTable instead of using a VisualTable and then populate the DataGrid with the received data (ie no automatic binding).
    • you may rewrite the lost data in the DataGrid when the grid is clean (take a look to how we populate the Custom field in our FlexStockListDemo)
    • you may subclass our VisualTable class and implement the functionality from the inside.
      In case you choose to go this way you have to know how the ArrayCollection class works. Also I'm not sure if this is feasible as we didn't took into consideration this approach when writing the VisualTable class thus there are no methods marked for override inside it, so, since there is a clean operation on the subscription start you may have difficulties going this way.
    HTH

 

 

Similar Threads

  1. On addTable() receveiving updates from previous group
    By jakov.semenski in forum Client APIs
    Replies: 3
    Last Post: November 26th, 2008, 06:14 PM
  2. Replies: 7
    Last Post: May 16th, 2008, 06:25 AM

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 04:33 AM.