08-21-2009 01:26 AM
I am having listfield with 10 records.
I want to update the listfield data with server changes.
I am using the drawListRow() method to initialize the listfield by passing a vector object and showing 10 records in first time.
Whenever there is a change in the server, i am getting the newly added records from the server maybe 2 or 3 records.
What i need is , how can i add these new records to the top of the listfield display and push the current records to one slot down according to incoming records. And i need to remove the last record from listfield according to adding in the top. Similar to a queue, adding a record to top , shifting current records to down and remove the last one from the bottom.
is it possible to do this thing in listfield?
I need to update the entire listfield or not.
Please give some sample code for doing this
General question, How can i mark one reply as 'Accepted solution'
08-21-2009 01:40 AM
This is possible. You just need to use the insert method of ListField and specify teh index where you want to insert. Same goes for inserting to ListFieldCallback.
You can find on right side.. Accept Solution button.