Skip to Content
avatar image
Former Member

Sorting on igrid tables

I am using MII workbench and I have generated an iGrid table in an applet on the frontend of my application which i am developing.

I wanted to sort it based on some coloumn number. Is there any way i can do it by some inbuilt igrid properties?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 25, 2010 at 05:31 AM

    Hi Ashu,

    you can select your coloumn header (which you want to sort) then hold control key and click Left mouse button on header.

    Regards,

    Manoj Bilthare

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Ashu,

      12.1 and 12.2 have the sorting feature at runtime built in. The sorting (asc, desc) and the column sorted is not saved. That is why the arrows and sorting go away when you load or refresh the page.

      As for the dynamic aspect of it, Manoj and Mike's approaches would work. Along those lines, I have seen a customer use Param.1 in a SQL query statement. Param.1 was set to -- so the line following it (order by) was commented out on applet load. Once the user would select some checkboxes, the Param.1 was changed and passed to the query and the applet was reloaded.

      Cheers,

      Kevin