1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    16
    Vote Rating
    0
    Kupper is on a distinguished road

      0  

    Default Updating panel with tpl

    Updating panel with tpl


    Hello there!

    I have a panel with a tpl defined and some default data on it. Works perfectly, but when I try to update it, no success...no error, no warning, nothing, simply no update.
    I`m doing it by using the update method for the panel passing a data object like this:

    {something: value,
    otherthing: value}

    Also, my tpl contain the variables "something"and "otherthing".

    Any tips?

    Thanks!!!

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,169
    Vote Rating
    28
    jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough

      0  

    Default


    try myPanel.body.update(myTpl.apply(myDataObj));

    Jay Garcia @ModusJesus || Modus Create co-founder
    Ext JS in Action author
    Sencha Touch in Action author

    Get in touch for Ext JS & Sencha Touch Touch Training

    We are also working on Video-based Sencha Touch training: Check it out here.

Similar Threads

  1. Updating a panel based on other panel's events
    By erincarikan in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 12 Mar 2009, 7:29 AM
  2. Updating split Tab Panel
    By qvrb in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 11 Dec 2008, 10:48 AM
  3. Updating Ext.Panel with image?
    By Ferrari312 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 1 Apr 2008, 12:42 AM
  4. Updating content panel.
    By joxan in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 2 Mar 2007, 11:58 PM

Tags for this Thread