1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Raleigh, NC
    Posts
    501
    Vote Rating
    456
    brian428 has a brilliant future brian428 has a brilliant future brian428 has a brilliant future brian428 has a brilliant future brian428 has a brilliant future brian428 has a brilliant future brian428 has a brilliant future brian428 has a brilliant future brian428 has a brilliant future brian428 has a brilliant future brian428 has a brilliant future

      0  

    Default XTemplate Automatic Data Update/Binding?

    Hi, I'm a long-time Flex developer who's looking at Ext and Ext GWT. A powerful feature of Flex is called binding, where a view can reference data in some other object, and when that data changes, the value is automatically updated in the view.

    I've searched around for something similar for XTemplates but haven't found information on this. So thought I'd come right to the source and ask if this is possible with XTemplates?

    Thanks,

    Brian

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,244
    Vote Rating
    843
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default

    What you're looking for is a View: http://docs.sencha.com/ext-js/4-0/#!/api/Ext.view.View
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,734
    Vote Rating
    123
    tobiu is a splendid one to behold tobiu is a splendid one to behold tobiu is a splendid one to behold tobiu is a splendid one to behold tobiu is a splendid one to behold tobiu is a splendid one to behold

      0  

    Default

    i agree with evan that the view is a good example, but there is more: almost every ui widget in the framework uses xtemplates that are bound to data arrays or stores.

    for example: view, gridpanel & treepanel are using stores, but even the base class container has renderTpl and renderData.
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

Thread Participants: 2