I'm developing an GIS app which can have map layers turned on by default. When layer is on, the checkbox of the Checkbox TreeGrid should be checked.
I've tried to add "checked" field to my tree's BaseModel:
public boolean getChecked() {
return (Boolean) get("checked");
}
public void setChecked(boolean b) {
set ("checked", true);
}
But it hasn't give any results. How can I set checkboxes of CheckboxTreeGrid initially checked?