开发者

How to auto-scroll to the bottom of a DevExpress.Web.ASPxHtmlEditor control?

开发者 https://www.devze.com 2023-04-12 19:52 出处:网络
I have been wrestling with this for hours and just can\'t make it work. I\'m using an ASPxHtmlEditor to display (in Preview mode) a dynamically constructed table (that is increasing its rows over the

I have been wrestling with this for hours and just can't make it work. I'm using an ASPxHtmlEditor to display (in Preview mode) a dynamically constructed table (that is increasing its rows over the time). I need the con开发者_Python百科trol to be scrolled always on the bottom of the table. I have tried using this:

<script type='text/javascript'>window.scrollTo(0, document.body.offsetHeight);</script>

It works on a web page (or a Web Form) but not inside the HTML code in the control. Any help will be much appreciated.


I would use the following bit of code: http://www.devexpress.com/Support/Center/p/Q207598.aspx

0

精彩评论

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