Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
285
WebCombo in Grid Causing Browser Scrolling - Yuck!
posted

I'm using a WebCombo as an editorcontrol in a grid.  It works great!  Unfortunately, when I click in the edited column the page scrolls to the end.  This isn't the end of the world, but I know my boss is going to have a problem with it.

I should admit that I also have some javascript in the EnterEditMode event to filter (using the fantastic .selectWhere method) the webcombo's rows.  I don't know if this is what is causing the scrolling or not.  Either way, I could use a solution.

I tried adding "window.scrollTo(0,0)" to the EnterEditMode event to scroll the page back to the top.  This works, but the page appears to "flash" first, which isn't much of a solution.  I'd prefer to avoid the scroll altogether.

Anyone have any ideas?