Results 1 to 2 of 2

Thread: Preventing resize event from getting fired when Grid Column's setWidth() is called

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    221
    Answers
    10
    Vote Rating
    3
      0  

    Default Preventing resize event from getting fired when Grid Column's setWidth() is called

    HI All,

    I am looping through grid's columns and setting width of each column based on certain condition. Each time I call setWidth it fires resize event of grid. I want to prevent resize event. Is it possible? I dont want to override the default behaviour.

    http://docs.sencha.com/ext-js/4-1/#!...ethod-setWidth

    Please provide your suggestions.

  2. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124
    Vote Rating
    91
      0  

    Default

    Hi!

    you may use Ext.EventManager for preventing firing of resize event.

    Just use removeResizeListener or removeListener

    For more clarifications, check below links:-
    http://docs.sencha.com/ext-js/4-1/#!/api/Ext.EventManager-method-removeResizeListener

    http://docs.sencha.com/ext-js/4-1/#!...removeListener
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Tags for this Thread

Posting Permissions

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