I'm working with a RadDocZone and I'd like to use an expression to set the width of the zone programmatically.
I know this code won’t work but thought if I showed it to you it would be easier to understand what I’m trying to accomplish.
RadDockZone rzone1 = new RadDockZone();
rzone1.ID = "zone1";
rzone1.Width = expression(document.body.clientWidth-438);
The issue is that I get a compile error because "expression" and "document" are not valid. The expression statement works fine when I use it in a CSS file.
However, for other reasons, I have to set the width programmatically; I can't use a CSS file. So using the expression statement in a CSS file isn't an option.
Is there any way I can set the Width property for a RadDocZone in my server code so that it will be sized dynamically on the client?
Thanks in advance for any help!