Results 1 to 4 of 4

Thread: Hide a row

  1. #1
    Ext User
    Join Date
    Jul 2008
    Posts
    2
    Vote Rating
    0
      0  

    Default Hide a row

    Hello all,

    Currently I'm just starting with this tool.. so I need some help from you all, any help would be welcome; the current problem what I got is what I need to hide a row when the client clicks on "delete" button, but looks like that's not way to do that, so I need to refresh the entire grid (or table) to delete this row.

    Thx a lot for any help that you can give me .

    Eng. Olman Rivera

  2. #2
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
      0  

    Default

    You do not "delete" rows, rather, just remove them. table.remove(item);. If you are using a TableBinder, then you would remove the Model from the Store.

  3. #3
    Ext User
    Join Date
    Jul 2008
    Posts
    2
    Vote Rating
    0
      0  

    Default

    But I need to delete the row, for example if I got the rowid how can I say to the grid "remove" that row? If you can add a sample... that would be great

    Thx...

  4. #4
    Ext User
    Join Date
    Jun 2008
    Location
    Melbourne, Australia
    Posts
    24
    Vote Rating
    0
      0  

    Default Use MVC johelrc

    Hi johelrc,

    Looks like you've got some study to do.. Most modern ui framework these days uses MVC so that you don't need to deal with the UI component directly. You manipulate the data and the UI component will take care of itself.

    In order to delete a data row, you should use TableBinder to bind Table with a store. From Store you can then remove/add the data as you need and it should automatically be rendered in the UI.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •