Announcement

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

    Modifying ListGridRecord programatically

    I'm working on something like http://www.smartclient.com/smartgwt/showcase/#grid_datatypes_link_text. First column is a link, second column is an ImgButton (record component).

    When the ImgButton is clicked (deactivating link) I want three things to happen:
    - disable link i.e. nothing happens when you click (setting url to #?)
    - link text is strike-through
    - ImgButton is "removed" e.g. hidden

    What needs to happen in the ImgButton's click handler? I tried calling
    Code:
     record.setEnabled(Boolean.FALSE)
    and tweaking the .<base_style_name>Disabled CSS class. Doesn't allow me to disable the link though.
Working...
X