Announcement

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

    how to showValueIconOnly in ListiGridField.filterEditor pickList

    SmartClient Version: SNAPSHOT_v11.1d_2017-03-13/Enterprise Development Only (built 2017-03-13)

    Chrome on OSX

    Hello, is it possible to show only the value icon in the pickList of a grid filterEditor?

    This doesn't work:
    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:500, height:300, alternateRecordStyles:true,
        dataSource: worldDS, 
        
        canEdit:true,
        
        fields:[
            {name:"countryCode", title:"Code", width:50},
            {name:"countryName", title:"Country"},
            {name:"capital", title:"Capital"},
            {
             name:"continent", title:"Continent",
              editorType:"SelectItem",
             filterEditorProperties: {
               valueIcons: {
                 'Europe': 'other/help.png', 
                 'Asia': 'other/help.png',
                 'North America': 'other/help.png',
                 'Australia/Oceania': 'other/help.png',
                 'South America': 'other/help.png',
                 'Africa': 'other/help.png'
               },
               showValueIconOnly: true,
               allowEmptyValue: true
             },
             showValueIconOnly: true,
             valueIcons: {
                 'Europe': 'other/help.png', 
                 'Asia': 'other/help.png',
                 'North America': 'other/help.png',
                 'Australia/Oceania': 'other/help.png',
                 'South America': 'other/help.png',
                 'Africa': 'other/help.png'
             }
            }
        ],
        autoFetchData: true,
        showFilterEditor: true
    })

    #2
    Your code seems to be doing so successfully. If you mean you also don't want to show the downward pointing chevron, that's the pickerIcon and can be eliminated with showPickerIcon:false.

    Comment


      #3
      Sorry, I meant that I want to show only the icons in the pickList:
      Click image for larger version

Name:	429721804_5661263586153979851.jpg
Views:	111
Size:	111.9 KB
ID:	243522

      Comment


        #4
        You can use pickListFields to set showValueIconOnly on the fields used by the pickList.

        Comment


          #5
          right, I didn't think of that, thank you very much

          Comment

          Working...
          X