Move right fixed column to the left based on the number of columns
Move right fixed column to the left based on the number of columns
Hi,
I am using the Data tables to show the dynamically generated data.
The data which is to be showed will be generated based on number of years. If we select 10 years, then we will get data in the form of JSON. So I am building the html table using jquery and applying fixed column properties of the datatables to0 my table(first and last columns).
The problem here is, when ever I select lesser number of years(particularly <6), the last column is always at fixed position in the UI and the area between First and Last columns is being occupied by the columns by dynamically generated data with some dynamically generated width. I want to move the last(right most-which was fixed) column should move to the left side if the data is less. If the data is more (i.e is the number of years greater than 5) then automatically the last column (right most) should move to right side and fit to the screen (in my case my layout).
Is there any solution for this. What are the attributes to be set to get it done.
Please provide me the solution.