Column OnClick goes to top of page - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Column OnClick goes to top of page (/thread-2561.html) |
Column OnClick goes to top of page - StephanM - 11-19-2021 In a IWDBGrid I use a column's OnClick to locate the record from the LinkField. But this always scrolls to the top of the page. It's a pain for the users because that puts the grid they're working on out of sight since it's further down the page. I tried using the colunm's OnAsyncClick instead but it's never fired. What's the trick to select the record from the grid without losing the current focus? Thanks RE: Column OnClick goes to top of page - StephanM - 11-21-2021 I tried using a TIWDBNavigator instead of the the grid column OnClick to change record. Same thing, reloads the whole page. This is a small slave dataset displayed in the middle of the page, I only need the grid to refresh. Test users hate being thrown back to the top of the page. Thanks for any advice. RE: Column OnClick goes to top of page - kudzu - 11-26-2021 I suggest checking out the newer JQ grid we have support for. Its far functional. RE: Column OnClick goes to top of page - MJS@mjs.us - 11-28-2021 Setting the grids parent form property 'AutoScrollPos' to true should keep the correct position after a full refresh. RE: Column OnClick goes to top of page - StephanM - 11-29-2021 AutoScrollPos property sounds like exactly what I need, but set it to true and the page still scroll to the top when column's OnClick fires. Did I miss something? RE: Column OnClick goes to top of page - MJS@mjs.us - 11-29-2021 There must be more going on then. I did a simple test with an iwdbgrid and the column onclick and it worked correctly, it didn't scroll to the top and kept it's position. |