You example works but I have a bit different aspect. First of all, I think it is only related with GridPanel, because with other controls seems it is working fine. Here is detailed steps how to reproduce it:

1) Create a simple control and place GridPanel inside of it. Also define custom properties directly in ASPX code: