Skip to content

Save the DetailList column width to db #23850

Answered by spmonahan
it950 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

  1. Set column widths with the calculatedWidth property on the IColumn interface. This allows you to directly set the width of columns. You'll get these values by loading them from your database.
  2. Listen for the onColumnResize event on each column. Alternatively you can listen for this event directly on D…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@it950
Comment options

Answer selected by it950
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment