Any Way to Serialize/Deserialize to COlumn Width / Formatting on MuliCOlumnTreeview

I can see how the sfdatagrid allows serialize/deserialize the column widths but these methods don't seem to exist on the Multi Column Treeview or is there a different way of achieving this.

3 Replies

VR Vijayalakshmi Roopkumar Syncfusion Team January 18, 2021 12:48 PM UTC

Hi Spotty, 
 
Thank you for using our Syncfusion Products.

We have checked the reported requirement “Serialization and deserialization functionalities with MulticolumnTreeView” and currently we don’t have direct support for it. So, we have added it to our feature request list, but we don’t have any immediate plans to implement this feature. You can track the status of this feature using the following feedback link:
 
 
 
At the planning stage for every release cycle, we review all open features. We will let you know when this feature is implemented.  
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Vijayalakshmi VR 



SP Spotty January 18, 2021 05:02 PM UTC

Any suggestions on ways to persist the column widths between uses of the application ?


VR Vijayalakshmi Roopkumar Syncfusion Team January 19, 2021 09:36 AM UTC

Hi Spotty 
 
Thank you for your update. 
 
Query : Any suggestions on ways to persist the column widths between uses of the application ? 
 
Yes, you can able to maintain the columnWidth with MultiColumnTreeView. It has the support for calculating the width of the Nodes and SubItems by calculating the width of Text and images in it and assigns the largest node width to its column using AutoSizeMode property with different values as shown below. It has varies mode allows to maintain width between column and text .  
 
 
 
  • None :  No sizing. Default column width or defined width set to column.
 
  • AllCellsExceptHeader: Calculates the width of column based on cell contents. So that cell contents  are not truncated.
 
  • AllCells : Calculates the width of column based on header and cell contents. So, header and cell contents are not truncated.
 
  • ColumnHeader: Calculates the width of column based on header content. So, header content is not truncated.
 
  • AllCellsWithLastColumnFill : Applies AutoSizeMode.AllCells width to all the columns except last column which is visible and sets the maximum between last column auto spacing width and remaining width to last column.
 
  • Fill :Divides the total width equally for columns.
 
 
  • LastColumnFill :Applies AutoSizeMode.AllCells width to all the columns except last column which is visible and the remaining width from total width of the control is set to last column.
 
 
 
 
 
We have also attached the sample for the same from following location: 
 
 
You can also refer the following link to know more about Autosize property. 
 
 
Please try this suggestion and let us know if it is helpful. 
 
Regards, 
Vijayalakshmi VR 


Loader.
Up arrow icon