开发者

How do I set the RadEditor height proportional to the RadWindow height when using Telerik controls?

Details of the work:

I am using RadWindow and RadEditor (the version is 2008.3.1314.35) with the editor within the RadWindow. My requirement is to set the height of the RadEditor proportional to (a percentage of) the RadWindow height.

What I did & the problems faced:

I have started with the client script in the .a开发者_开发技巧spx page which is being loaded in to the window. In the window.onload I am trying to fetch the RadWindow height and set the height of the editor based on that value, but I can't get the RadWindow height. I have used .get_height() of the RadWindow object and also .getWindowBounds(); but it is throwing script errors.

So here is my concern:

  1. Is there any property in the RadEditor that would serve my requirement detailed above, i.e. auto size the editor based on the size of the RadWindow?

  2. Am I going in the right direction? Are there any alternatives you could suggest? Please guide me.


I suppose you can have this sample for starter and combine it with the auto-resize telerik window feature to avoid any manual coding. Bear in mind that the latter is part of the Q3 2010 telerik release.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜