SmartGWT 3.0 / FF 10.0.4
I can get entries to be disabled in my SelectItem. But sometimes the first disabled entry is unformatted (ie. no CSS styling is applied).
Any idea why?
I can get entries to be disabled in my SelectItem. But sometimes the first disabled entry is unformatted (ie. no CSS styling is applied).
Any idea why?
Code:
myCmb = new MySelectItem("type", "Config", 180, false); myDs = new DataSource(); myDs.setClientOnly(true); myCmb.setOptionDataSource(myDs); for(String entry: entries) { Record record = new Record(); record.setAttribute("type", entry); if(enabledList.contains(entry)) { record.setAttribute("enabled", true); } else { record.setAttribute("enabled", false); } myDs.addData(record); }
Comment