Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Disable removal of individual records on ListGrid

    Hi,

    I have a databound listgrid with
    Code:
    setCanRemoveRecords(true)
    This is working fine and I get the remove icon on each row.

    I would like to be able to disable the ability to delete certain rows preferably by passing a property through from the server.

    For example, I can enable or disable a row by having:
    Code:
    	public boolean isEnabled() {
    		return enabled;
    	}
    on my server side model object.

    Is there a property I can pass through that will disable / hide the remove icon or disable the remove functionality for that row.

    Thanks,

    MikeA
    SmartClient Version: SC_SNAPSHOT-2012-01-03_v8.2p/Pro Deployment (built 2012-01-03)

    #2
    I have solved this with something I found in another thread by not using setCanRemoveRecords and using a custom image field with a click handler.

    MikeA

    Comment

    Working...
    X