1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Raleigh, NC
    Posts
    445
    Vote Rating
    272
    brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of

      0  

    Default XTemplate Automatic Data Update/Binding?

    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
    17,166
    Vote Rating
    674
    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 Premium Member tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,695
    Vote Rating
    114
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      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