Announcement

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

    FilterEditor hints

    Is there anyway to set hints on the columns in the FilterEditor for a ListGrid? Much like you would for a FormItem?

    Thanks!
    Chris

    #2
    How would you want the hints to appear? You can use setFilterEditorType() to add FormItemIcons which can have a tooltip prompt and can be clicked to provide yet more information.

    Comment


      #3
      To show a hint in the filter field set the filterEditorProperties on the field. Something like:
      Code:
      TextItem filter = new TextItem();
      filter.setHint("sku");
      filter.setShowHintInField(true);
      
      listGridField.setFilterEditorProperties(filter);
      Last edited by davidj6; 31 May 2011, 19:00.

      Comment


        #4
        That was exactly what I was looking for. I also find it helpful to turn off the browser spell check:

        Code:
        		final ListGrid listGrid = new ListGrid();
        
        		ListGridField name = new ListGridField( "name", "Name", 250 );
        		TextItem nameItem = new TextItem();
        		nameItem.setBrowserSpellCheck( false );
        		nameItem.setHint( "Name" );
        		nameItem.setShowHintInField(true);  
        		name.setFilterEditorType( nameItem );
        Thanks!

        Comment

        Working...
        X