Announcement

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

    ListGrid header hover disable selected behavior

    SmartClient Version: v9.1p_2014-10-20/PowerEdition Deployment (built 2014-10-20)
    GWT 3.1
    IE-11

    I have a ListGrid with:

    Code:
    selectionType: none
    canSelectAll: false
    canResizeFields: false
    showHeaderMenuButton: false
    showHeader: true
    Is there any way I can turn off the behavior of the ListGrid's headers when I mouse over them? Currently they 'depress' as the mouse moves over the headers. I would like them to simply do nothing?

    #2
    You can use headerButtonProperties to set showRollOver to false on all headerButtons
    Code:
    isc.ListGrid.create({
        ... // various properties
        headerButtonProperties:{
            showRollOver:false
        }
    });
    Note - this is posted in the Smart GWT forum thread but the sample code you posted is raw JavaScript so we're assuming you're using SmartClient / JavaScript rather than SmartGWT / Java. However, if you want to achieve the same thing in SmartGWT, the code would be more like this:

    Code:
    Button headerButtonProperties = new Button();
    headerButtonProperties.setShowRollOver(false);
    
    // Assume ListGrid already created with local variable name
    // "grid" ...
    grid.setHeaderButtonProperties(headerButtonProperties);
    ----
    EDIT:
    Actually on looking at your original post more closely , it appears you are using GWT. Apologies for the confusion.
    The Java-format is therefore the right approach for you. Let us know if it does not behave as expected.

    Regards
    Isomorphic Software
    Last edited by Isomorphic; 18 Jun 2015, 10:40.

    Comment


      #3
      By using the ListGrid(JavaScriptObject) we can dynamically setup a simple unbound content grid and feed it any data we choose by passing the Javascript fragment (constructor in this case by looking at the SmartClient examples) from outside the app. Similar to a template system but for SmartGWT objects.

      Which is why I am turning off those features. Your suggestion worked perfectly in Javascript.

      Comment

      Working...
      X