I know this is an older post, but I am working on something similar and the following loop worked for me: // change border color: for (i = 0; i < 4; i++) { this.ui.oneOfChild.border.getElement("edge", i).color.value = "255,0,0"; }Notes:Borders are only 4 items (top, right, bottom, ...