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

Select a record on a listgrid

$
0
0
I want to select a record in the listgrid based on a criteria i provide. How do I do this?

My criteria is:
Code:

Criteria criteria= new Criteria();
filterCriteria.addCriteria("id", idToSelect)

I tried to first get all the records in the listgrid, then use .find to get the record I want:
Code:

RecordList userRoles = grid.getDataAsRecordList();
Record record =userRoles.find("id", idToSelect);


But it's not returning anything.

Viewing all articles
Browse latest Browse all 4756

Trending Articles