Results 1 to 2 of 2

Thread: do I need to explicitely rerender grid

  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    102

    Question do I need to explicitely rerender grid

    Hi,

    I am using Ext2.0 and displaying my my products info Grid panel. When using gridPanel like
    Code:
       grid = new Ext.grid.GridPanel({    				
    			        store: dataStore,
    					cm: columnModel,
    					sm: createSelectionModel(),
    					border: false
    			               renderTo: 'center-div'
    			    });
    do I ever need to render the grid explicitely when I reconfigure gridPanel.

    In general after creating grid when should one explicitly rerender the grid.

    like
    grid.render()

    thanks

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    Almost never.

    When you want to update the data use store.load(), store.add() etc.
    When you want to change the store or the column model use grid.reconfigure().

Posting Permissions

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