-
Can we save the changed column width of a DetailList to db? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There are APIs on
This Codepen is a basic example of how you could accomplish saving and loading column widths from a database. |
Beta Was this translation helpful? Give feedback.
There are APIs on
DetailsList
that will allow you to do this. The actual implementation of how you save and load data from a database is outside of the scope of Fluent and you're likely to run into some edge cases (e.g., save the changes to DB, close the page, resize browser window width, reopen the page -- what should the column widths be?) but I can offer a rough outline of how to do this.calculatedWidth
property on theIColumn
interface. This allows you to directly set the width of columns. You'll get these values by loading them from your database.onColumnResize
event on each column. Alternatively you can listen for this event directly onD…