Announcement

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

    CanRemovedRecord Disabled Icon

    If a ListGrid has canRemoveRecords:true and said ListGrid is disabled, shouldn't the removeIcon also be set to a disabled appearance i.e. use 'remove_Disabled.png'?


    Code:
                isc.ListGrid.create({
                    ID: "countryList",
                    width:500, height:150,
                    autoSaveEdits: false,
                    canRemoveRecords: true,
                    data: [
                        {continent:"North America", countryName:"United States", capital:"Washington, DC"},
                        {continent:"Asia", countryName:"China", capital:"Beijing"},
                        {continent:"Asia", countryName:"Japan", capital:"Tokyo"}
                        ],
                    fields:[
                        {name:"countryName", title:"Country"},
                        {name:"capital", title:"Capital"},
                        {name:"continent", title:"Continent"}
                    ]
                })
    
    
                isc.IButton.create({
                    left:20, top:160, width:150,
                    title:"Toggle Disabled",
                    click: "ftoggleDisabled();"
                })
    
                function ftoggleDisabled(){
                    if(countryList.isDisabled()==true){
                        countryList.setDisabled(false);
                    }else{
                        countryList.setDisabled(true);
                    }
                }
Working...
X