Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Resort after progamatically changing sort field

$
0
0
Hello everyone,

in my current project, I have to progammatically update a 'sortorder' field, which is used for sorting my list.

Something like:
Code:

Record record = listGrid.getSelectedRecord();
record.setAttribute("sortorder", 123);
listGrid.updateData(record, someDSCalback);

I tried to call listGrid.resort() within the DSCallback, which did not help at all. Calling invalidateCache of course helps, but is totally inefficient.

How can I make my listGrid resort, using the updated sortorder?

Thank you very much for any answer in advance,
Dennis Hardy

Viewing all articles
Browse latest Browse all 4756

Trending Articles