Results 1 to 2 of 2

Thread: Change columnWidth of a component on the fly

  1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    40
    Answers
    1

    Default Answered: Change columnWidth of a component on the fly

    Hi,

    I would change the columnWidth param of a component but I don't find any method to do it. I tried to change the property with
    Code:
    component.columnWidth = 1; 
    component.doLayout()
    but it doesn't work. Is there a way to do it?

  2. You need to call doLayout() on the parent container. Take a look at this example:

    https://fiddle.sencha.com/#fiddle/tq6

  3. #2
    Sencha User
    Join Date
    Jul 2012
    Posts
    236
    Answers
    45

    Default

    You need to call doLayout() on the parent container. Take a look at this example:

    https://fiddle.sencha.com/#fiddle/tq6

Similar Threads

  1. Set columnWidth in responsive config
    By jineeshmg in forum Ext 5: Q&A
    Replies: 1
    Last Post: 4 Dec 2014, 12:10 PM
  2. columnWidth property sum
    By taavih in forum Community Discussion
    Replies: 3
    Last Post: 16 Aug 2012, 1:45 AM
  3. ColumnLayout with columnWidth followed by width
    By diovani in forum Ext: Discussion
    Replies: 3
    Last Post: 2 Jan 2012, 10:34 AM
  4. columnWidth in card layout
    By mrgekko in forum Sencha Ext JS Q&A
    Replies: 2
    Last Post: 3 Nov 2007, 1:57 AM

Posting Permissions

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