DISQUS

Bryan Bartow's Blog: Release: Flex AutoSizingList Component

  • Vikash Sharma · 1 year ago
    Hi

    I am creating advanced data grid dynamically. Columns are added at runtime.
    1. How can i resize the width of advanced datagrid ?
    2. Actually, Last Column width always become larger.

    Plz advise.

    Thx
    Vikash
  • bryanbartow · 1 year ago
    @Vikash I haven't spent much time with the AdvancedDataGrid component. You may want to ask the guys at Workday, as they may have encountered the same issue you're trying to tackle. Good luck.
  • radley · 1 year ago
    you could have just used:

    variableRowHeight="true"

    rowCount="{list.dataProvider.length}"
  • bryanbartow · 1 year ago
    @radley Actually, that's not what I was aiming for at all. I want the length of the list component to change, as you can see in the example. Your solution leaves the list at a fixed height. Nice try, though.
  • Karen · 1 year ago
    I'm still coming up to speed on Flex, however your component helped with some issues I was having. It doesn't work when I put it in a viewstack. Can you explain to me why or what I might need to do to make it work.

    thanks
  • bryanbartow · 1 year ago
    @Karen I'm not exactly sure what your issue is. I'd probably need to see some source code to be of more help. Post some code if you'd like and I'll take a look at it.
  • Karen · 1 year ago
    Bryan,

    I figured it out. You need to set the resizeToContent="true" for the viewstack otherwise the height was appearing to be a height of 2.

    Thanks again for posting this component.

    cheers,
    karen
  • bryanbartow · 1 year ago
    @Karen I'm glad you got it working.
  • aw · 10 months ago
    great work man!
  • bryanbartow · 10 months ago
    Thanks aw. I hope you get some use out of it.