Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
GridView sorting
posted

Hi Every one,

First of all i would like to thank you all for your previous valuable suggestions. Currently i am working on a requirement where we are using JSF1.1 with Infragistics plugin.

I have a ig:gridView component to which i have a binding variable (dataSource is a collection of Employee objects) which are displayed on the UI. We have a ig:dialogWindow where we will display a list of sort options like EmployeeID, EmployeeName, Salary....

Nothing has to do on the UI displaying side. My concern is to sort the dataSource according to the user selection above and pass that sorted data to a PDF file. I need to perform server side sorting of my GridView datasource.

My code is like this

SortExpression[] ses =

new SortExpression[3];

if(userSelectedSortOption.equals("EmployeeID") {

SortExpression se =

new SortBLOCKED EXPRESSION;

Any help will be highly appreciated. Thanks in advance.