hi all.i am trying to get a docbaselockicon from a data grid and set the docbaselockicon visible.the code below:in datagrit the docbaselockicon's visible attribute is false.
public void onControlInitialized(Form arg0, Control arg1) {
if (arg1.getName() == null)
return;
Datagrid dg2 = (Datagrid) getControl("dgTaskList", Datagrid.class);
rows = dg2.getDatagridRows();
for (int i = 0; i < rows.size(); i++) {
Label label = (Label) getControl("label" + i, Label.class);
String labelString = label.getLabel();
if (labelString != null && labelString.contains("locked")) {
DocbaseLockIcon dbli = (DocbaseLockIcon) getControl("lock_" + i, DocbaseLockIcon.class);
System.out.println(dbli.getName());
dbli.setVisible(true);
}
}
}
with debugging i determined that label and docbaselockicon can be taken healthyly.it seems to me that it has no errors but unfortunately the docbaselockicon can not be made visible.
what is wrong with this code?
Best Regards.