Page 29 of 30 FirstFirst ... 1927282930 LastLast
Results 281 to 290 of 295

Thread: Ext.ux.touch.grid

  1. #281
    Sencha User
    Join Date
    Mar 2013
    Posts
    10
    Vote Rating
    0
      0  

    Default Dynamically adding columns to the grid

    Hi , I want to Dynamically adding columns to the grid.

    I am trying to use applyColumns() . But it is not adding columns.

    What is the issue?

    Thanks,
    Prabhu M

  2. #282
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Quote Originally Posted by prabhum103 View Post
    Hi , I want to Dynamically adding columns to the grid.

    I am trying to use applyColumns() . But it is not adding columns.

    What is the issue?

    Thanks,
    Prabhu M
    Don't use applyColumns, use setColumns.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #283
    Sencha User
    Join Date
    Mar 2013
    Posts
    10
    Vote Rating
    0
      0  

    Default

    how to define a column? could you please give me an example ?

  4. #284
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Quote Originally Posted by prabhum103 View Post
    how to define a column? could you please give me an example ?
    Um... there are several examples available in the git repo
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  5. #285
    Sencha User
    Join Date
    Jan 2010
    Posts
    8
    Vote Rating
    0
      0  

    Default

    Hi,

    Any sample codes for adding of new rows to the grid?

  6. #286
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Quote Originally Posted by phweeyee View Post
    Hi,

    Any sample codes for adding of new rows to the grid?
    The grid (and a normal List or DataView) will display exactly what is in the store. So if you want to add a new row to the grid, you have to add a new record to the store.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  7. #287
    Sencha User
    Join Date
    Jul 2013
    Posts
    1
    Vote Rating
    0
      0  

    Default

    All are Drag and Drop methods Why you dont make Examples in each component ? instead of code make the steps correctly please beginners cant follow this........

  8. #288
    Sencha User
    Join Date
    Nov 2011
    Posts
    16
    Vote Rating
    1
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    The grid (and a normal List or DataView) will display exactly what is in the store. So if you want to add a new row to the grid, you have to add a new record to the store.
    In my code i do have to call grid.doRefresh(), after add a new record to the grid store and it works for me.

  9. #289
    Sencha User
    Join Date
    Jan 2010
    Posts
    8
    Vote Rating
    0
      0  

    Default

    Thanks.

    However, the added row will only be displayed when I click on the header. Same when I first load the table, I have to click on the header once for the initial data from a store to be loaded. Any idea how to solve this problem?

  10. #290
    Sencha User
    Join Date
    Jan 2010
    Posts
    8
    Vote Rating
    0
      0  

    Default

    Hi dlogic,

    I am having the same problem as you. Have you got the solution to your question?

Page 29 of 30 FirstFirst ... 1927282930 LastLast

Posting Permissions

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