React Flexgrid - add sort indicator in the code for a column

Posted by: igelfenbeyn on 25 June 2020, 12:51 am EST

  • Posted 25 June 2020, 12:51 am EST

    Hello,
    how do i add sort indicator in the code for a specific column?

    thank you
  • Replied 25 June 2020, 8:45 pm EST

    Hi,
    For this, you may apply the sorting to that specific column using the following code:
    grid.collectionView.sortDescriptions.push(new WjCore.SortDescription("country",true));
    grid.selection = new WjGrid.CellRange(0,0);

    Please also refer to the attached sample for reference.

    Regards,
    Manish Gupta
    FlexGrid-Sort.zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels