|
<< Click to Display Table of Contents >> Navigation: Forum > Column OnClick goes to top of page |
11-19-2021, 06:23 PM:
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
11-21-2021, 06:30 PM:
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.
11-26-2021, 11:29 PM:
I suggest checking out the newer JQ grid we have support for. Its far functional.
11-28-2021, 03:02 AM:
Setting the grids parent form property 'AutoScrollPos' to true should keep the correct position after a full refresh.
11-29-2021, 06:26 PM:
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?
11-29-2021, 06:47 PM:
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.