PDA

View Full Version : Remove an element from list



fhdeveloper
22 Jul 2010, 10:44 PM
Hi,

I was trying to figure out how to delete an element from a list and then have the list update to show that it was removed. Ideally if i can do it without reloading the whole list that would be great. I've been trying this for a while but cant seem to figure it out.

Should I delete it from the data store or from the list? Thanks in advance for the help!

much appreciated,
fh

meyerovb
23 Jul 2010, 1:37 PM
If the component is based on a store, then you should always deal with the store to control what is displayed in the component. After modifying the store call component.doLayout() if it doesn't re-render. If that's still not working post your code (a pared down version of it if possible).