1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    25
    Answers
    1
    Vote Rating
    0
    ziaullhaq.s is an unknown quantity at this point

      0  

    Question Unanswered: How do I remove a row a Row from List?

    Unanswered: How do I remove a row a Row from List?


    We have created a List using SenchaTouch
    Each row in a List have the Image of (Delete Icon). When a person clicks on the this icon(Image) the respective row of an image should get deleted.
    The main issues are
    1) : The (onclick : function) of an (Html: Image) is not working.
    2) : If this function workes also then there is a scope problem.

    var reviewUrOdrDetailList = Ext.create('Ext.dataview.List',{
    cls : 'transperantPanelCLs'
    ,width : '100%'
    ,scroll : 'none'
    ,id : 'myList'
    ,itemTpl : '<div class="restListDiv">'
    +'<table width ="100%">'
    +'<tr width = "100%" >'
    +'<td width="90%" >'
    +'<table width = "100%" height = "35">'
    +'<tr rowspan = 3>'
    +'<td>'
    +'<p class = "reviewUrOdrDetailName">{reviewUrOdrDetailName}</p>'
    +'</td>'
    +'</tr>'
    +'<tr >'
    +'<td>'
    +'<p class = "reviewUrOdrDetailPrice">{reviewUrOdrDetailPrice}</p>'
    +'</td>'
    +'</tr>'
    +'</table>'
    +'</td>'
    +'<td width="10%" >'
    +'<img src = "Images/Map/minus_red.png" width = "20px" height="20px" onclick="alert(\'Zia\');" >'
    +'</td>'
    +'</tr>'
    +'</table>'
    +'<div>'

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,013
    Answers
    3490
    Vote Rating
    848
    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


    To remove a row from a list you have to remove the record from the store.
    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
    Join Date
    Dec 2011
    Posts
    25
    Answers
    1
    Vote Rating
    0
    ziaullhaq.s is an unknown quantity at this point

      0  

    Default


    The issue is when a persion clicks on DELETE icon in each row of list. The respective row of the list should get deleted.

Thread Participants: 1