Community Tip - You can change your system assigned username to something more personal in your community settings. X
Hi ,
I have Datatable which contains 20 rows and i have written service which fetch Machine names from this Datatable and displays in Dropdown , but i want order of rows same which is in Datatable. how to achieve this. if we manage it at dropdown also No issue.
Thanks,
Vaibhav
Solved! Go to Solution.
If you need to enforce an order, I recommend you add an order field to your DataTable (assuming there is no suitable field to order on available) and then apply sort to that order field.
In your service that fetches the data, apply a Sort
Hi @PaiChung ,
If we sort in Service, it will return either Ascending or Descending. I want custom order that is how I have inserted in Datatable
in same order dropdown list should hold. If you elaborate more on this , would be better.
Thanks,
If you need to enforce an order, I recommend you add an order field to your DataTable (assuming there is no suitable field to order on available) and then apply sort to that order field.