You need to sign in to do that
Don't have an account?

Reload StandardSetController Records
Hi,
I've created a StandardSetController extension and a Visualforce page with a pageblocktable that displays a list of records from a custom object.
At the Visualforce page I do some ajax calls to delete a record from this object, then I do a rerender of the pageblocktable to display the list *without* the recently deleted record, but it stills at the list.
As I can see, what is happening is that the Set of records are not loaded again when I do the rerender.
How I can reload the set of records? Is possible?
All Answers
thx Anand , I figured it out, the StandardSetController must be a property of my Custom Controller
When I do some change I reinitialize the property, (with database.querylocator) and the results are reflected.
BR1 - can I trouble you for your code?
I'm running into the same issue of trying to re-render a pageBlockTable but can't figure out how to do so. I'm not sure what you mean by "make StandardSetController a property and re-initialize it".
My not working code:
In case others have my problem, I resolved it by ensuring the setController re-intializes even if not null:
http://community.salesforce.com/t5/Visualforce-Development/How-to-Rerender-StandardSetController-in-PageBlockTable/m-p/193785/highlight/false#M25973