Results 1 to 2 of 2

Thread: how to use tpl & record with a panel?

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    253
    Vote Rating
    0
      0  

    Default how to use tpl & record with a panel?

    I have a store, and a panel
    I would like to use the tpl and record config, to easily set panel content,

    I tried to define the panel with a tpl: '<div><strong>{publisherName}</strong></div>',
    and when I show the panel, I do panel.setRecord(record), where record is an item in the store, but nothing happens, is there something to refresh?

    thanks

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,030
    Answers
    3976
    Vote Rating
    1368
      0  

    Default

    Try

    Code:
    panel.setData(record.getData());
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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