Announcement

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

    Can't disable standard selection checboxes in Smart GWT

    Is there any way to show standard selection checkboxes (with "select all" checkbox) in ListGrid but disabled? So, user can see which rows are selected/deselected but can't change this selection.

    I've tried a lot of ways but all of them was unsuccessful for me.

    Thanks

    #2
    Could add a click handler that cancels the event when it is column 0, and a header click event that cancels when fieldNum is 0.

    Comment


      #3
      Thanks for the quick reply! But seems it doesn't work in my case (checkbox is selected earlier than click handler is invoked).

      After some more attempts I found that I can override "selectOnMouseDown" function of ListGrid.js (for grid rows checkboxes) and set "disabled" property of checkbox field to "true" (for "select all" checkbox). This can be done by overriding js smart client code for particular instance of ListGrid.
      Last edited by begemotina; 10 Jun 2010, 13:08.

      Comment


        #4
        Ahh good to know, thanks for posting the solution.

        Comment

        Working...
        X