Dynamic condition sorting column.
Dynamic condition sorting column.
phuonghv
Posts: 3Questions: 0Answers: 0
Hello every one, I'm newbie of DataTable. I have a trouble with sorting multiple column. For example: I have 5 columns:
When I click header of column 1, data in column 1 will sorted ASC, column 2 ASC.
When I click header of column 2, data in column 2 will sorted ASC, column 3 DESC.
When I click header of column 3, data in column 3 will sorted DESC, column 1 ASC...
Please tell me how to implement? do you show me an example.
Thank you so munch.
When I click header of column 1, data in column 1 will sorted ASC, column 2 ASC.
When I click header of column 2, data in column 2 will sorted ASC, column 3 DESC.
When I click header of column 3, data in column 3 will sorted DESC, column 1 ASC...
Please tell me how to implement? do you show me an example.
Thank you so munch.
This discussion has been closed.