1. #1
    Sencha User senchaSaurav's Avatar
    Join Date
    Feb 2012
    Location
    Bangalore, India
    Posts
    41
    Vote Rating
    0
    senchaSaurav is on a distinguished road

      0  

    Default Unanswered: Newbie: Update View/Panel data dynamically on tap of item on the Dataview

    Unanswered: Newbie: Update View/Panel data dynamically on tap of item on the Dataview


    Hi,
    I am trying to build IPad Application using Sencha Touch 2.0.
    On the left side I have List of items, and on tap of item I need to render the respective information on the right side detail container.
    On the RHS, the container consists of titlebar with action buttons and Segemented Button component. So ontap on the item, I want to display respective information and on each of the button clicks in the Segemented button group it shall render related information w.r.t selected item in the list.

    So in this scenario;
    1.Here, Is it necessary to create new instance of the view each and every time ontap of the items or only requires to update the data because representation will be same for the items but only the data shall be change?
    2.And how can I dynamically update the RHS detail container ontap of the intended item on the LHS?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,047
    Answers
    3493
    Vote Rating
    850
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    If the component on the right is going to have the same HTML structure you can give the component a tpl and then on itemtap you can use setData on the component on the right and that should fill the template with data.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User senchaSaurav's Avatar
    Join Date
    Feb 2012
    Location
    Bangalore, India
    Posts
    41
    Vote Rating
    0
    senchaSaurav is on a distinguished road

      0  

    Default


    Thanks for your quick response.
    Do you any example related to this?
    One more thing,
    I have a Main panel where I used card layout with animation slide, direction left and items in the Main Panel are TitleBar, TabPanel, and Panel in that panel I have used HBar layout to get the separation on LHS my dataview and on RHS my the detail container. But when I tap on item animation slide is not working.

    Note: Till now I didn't try it on IPad. I am still in Chrome.

Thread Participants: 1