1. #1
    Touch Premium Member
    Join Date
    Jun 2010
    Posts
    324
    Vote Rating
    2
    profunctional is on a distinguished road

      0  

    Default sample code to wire ontap event to a template list item?

    sample code to wire ontap event to a template list item?


    I've got a list of items that is rendered onto a panel using the tpl. Is there any sample code to wire an ontap or onclick event to each row?

    I'm just looking for a simple code snippet. t

    Thanks.

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    9
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    In general once you want a panel with template, and want selection of items etc, its best to use DataView or List. Both of these are in essence a Panel with a Template, but they implement store binding, item selection, special events etc.

  3. #3
    Touch Premium Member
    Join Date
    Jun 2010
    Posts
    324
    Vote Rating
    2
    profunctional is on a distinguished road

      0  

    Default


    I would like to do something like the kiva and geocongress samples, which seem to be extending the Panel. If I use the list, do you have a sample that binds the list using a ajax call vs the static data in the examples?

Similar Threads

  1. Setting list and list item styles for Html widget
    By afs in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 9 Nov 2009, 2:29 AM
  2. combobox with drop list whose item height (for each item) is 3 pixels high!
    By stratton in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 17 Feb 2009, 8:50 AM
  3. Sample code for onBlur event on a text field
    By GithaSampath in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 31 Oct 2008, 3:00 PM
  4. Wire EJBs over the wire.
    By powerj in forum Community Discussion
    Replies: 1
    Last Post: 5 Sep 2008, 3:36 AM
  5. delay on an element, sample code
    By KeyConsulting in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 27 May 2008, 5:05 AM

Thread Participants: 1