Checkbox selection column for grid

  • Grid3 (http://extjs.com/deploy/dev/examples/grid/grid3.html) shows how a row can be selected using checkbox column.

    If a row is selected and deleted in grids, we plan to show rows as 'marked for delete' requiring a separate submit. When this happens, we want to swap the checkbox with an 'undo delete' icon for the rows marked for delete. This way, user can selectively undo any desired deletes before a final submit. Is this doable in Ext 2.x and beyond? Thanks.


  • Sure, take a look at how the Ext.grid.CheckboxSelectionModel is implemented. You will want to implement a subclass like this but you will need to implement a custom sprite for the 3 states, unchecked, checked, marked for deletion. I would then add in an extra column in the record definition like 'markToDelete' which is a boolean. When this is set to true you will set the custom sprite to the marked for deletion state. Otherwise you will use the standard checked/unchecked of the ColumnModel.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Checkbox selection column for grid , Please add it free.

    9 January 2009 | cameltoepants.com | edit