Results 1 to 3 of 3

Thread: how dynamic set fileds to store??

  1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    31
    Vote Rating
    0
      0  

    Default

    how ? no method and no properties but config.

    i want to dynamic generate grid column , so i define a store first, then i want's set fileds to the store

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

    Default

    The store will need a model (it creates one if you specify the fields config). You cannot really change the fields in a model so you would have to create a new model.
    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. #3
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,390
    Vote Rating
    498
      0  

    Default

    You could try something like:
    http://www.sencha.com/forum/showthre...l=1#post624792

    Then use grid.reconfigure() for your grid columns.

    Regards,
    Scott.

Posting Permissions

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