jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Maintain scroll position Maintain scroll position #21359

    Terry Foster
    Participant

    That would be great. Thank you.

    Terry


    Terry Foster
    Participant

    We have a little more information on this issue. To recap, we have a grid that displays “projects”, each of which has a checkbox to include it in a chart that we show in another part of the application, and a priority. Thus, three columns in our grid: Include (checkbox), Name, and Priority. When we first launch the application, we want the projects sorted by priority (highest priority at the top of the grid) – thus you see we specified ‘sortcolumn’ and ‘sortdirection’ in the data adapter. This all works as expected, until you start checking any of the check boxes. What seems to be happening is that when a check box is checked, the grid automatically resorts the grid by the priority column, thus making it jump back up to the top if you are scrolled down a ways. A similar thing happens if launch the application, then manually sort by the ‘Name’ column (taking the sort away from the ‘Priority’ column) and then check a checkbox – the sort automatically goes back to the ‘Priority’ column. If I remove the ‘sortcolumn’ and ‘sortdirection’ specification from the data adapter, none of this weirdness happens, but we would like to have the grid initially sorted by priority. Is there a different way to accomplish the initial sort, or will you be able to fix this issue?

    Thanks,
    Terry

Viewing 2 posts - 1 through 2 (of 2 total)