Results 1 to 3 of 3

Thread: Auto sized columns for Grid

  1. #1
    Sencha User
    Join Date
    Mar 2016
    Posts
    44
    Answers
    2

    Default Auto sized columns for Grid

    I wondering, Is there any way to use hardcoded width for columns like width: '100px' and if grid width has more value then summ of columns width next resize all columns to fit to grid size. But if I will increase one column size then scroll bar appears and other columns width dont change.

    I played with forceFit: true. But that behaviaur works just for begin. When I change column size scrollbar don't appear just other columns change their width.

    I spend more then 3 days to achive desired result and tried many different approaches like override resizer.onResize, layout methods etc. But just found nothing.

    example:

    Now I have grid:

    LotOfSpace.jpg

    I want to achive like following image:

    WIthoutEMptySpace.jpg
    And to keep ability to increase colulmn size wihout decreasing other colums width.


    Can anyone faced with problem like that ?

    Thank for any replies.

  2. #2
    Sencha User
    Join Date
    Apr 2013
    Posts
    908
    Answers
    105

    Default

    Have you tried flex config? Just setting all your columns to "flex: 1"?

  3. #3
    Sencha User
    Join Date
    Mar 2016
    Posts
    44
    Answers
    2

    Default

    Quote Originally Posted by hakimio View Post
    Have you tried flex config? Just setting all your columns to "flex: 1"?
    Yes. After that when you will try change width for one column other columns will decrease they width.

    I'm trying to achieve result that when you change (increase) column width other columns will not change them width.

    Thanks for attempt.

Similar Threads

  1. Extjs 4.2.1 portal with re-sized columns
    By fafche in forum Ext: Discussion
    Replies: 1
    Last Post: 28 Jun 2013, 2:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •