Hi,
We have requirement when one of the column header is clicked then sorting should happen based on another grid column which is hidden, but for other columns in the grid sorting should happen on same column (i.e. column clicked).
Please let us know how the above can be achieved.
We are using infragistics 20132.2364 version and the grids have virtualization feature enabled.
Thanks,
Kiran
Hello Tsanna - The solution provided works for our requirement. Thanks for providing this.
I created a sample that demonstrates your requirement. For the purpose I've used customSortFunction: http://help.infragistics.com/jQuery/2014.2/ui.iggridsorting#options:customSortFunction
Please find the attached sample for your reference.
Regards,
Tsanna
Hi Tsanna
In the example attached the hidden and unbound columns have a same values. In my case the 2 columns have different values(may be different types) and the data obtained from sever already has both columns.
Please provide an example for the above requirement.
Thanks, Kiran
Hello Kiran,
In order to achieve this I would suggest you to use unbound column. You should set some values to the unbound column using databound event. In the current case, if you want to sort the unbound column based on another hidden column, then you should set the bound column values to the unbound one in order to apply the sorting correctly. I'm attaching a sample with similar scenario for your reference. If you have any further questions, please let me know.
Regards,Tsanna
Hi - Can you please provide suggestions around the above query. Thanks.