Using the browser back button

2 posts, 0 answers
  1. Andrew Ryan
    Andrew Ryan avatar
    15 posts
    Member since:
    Apr 2009

    Posted 11 Dec 2009 Link to this post

    Is there anyway to get a dual listbox configuration to remember where list items are when the user uses the browser back button?

    In the use case where you're using a dual list box say, for picking output columns on a search - it can get pretty frustrating for the user to click back and find that both the columns he selected and the order of said columns have been lost.

    When I wrote my own dual list box javascript component (before Telerik came out with theirs), I wrote an entry every time a field moved into a hidden field. I had a method on the body load that read the hidden field and repositioned the items whenever the page was loaded, except for the first time. Since hidden fields will stay put on a postback, this is a reliable way of pulling back a users selections and order when the back button is pressed.

    Does anyone else feel me on this?

    Andrew
  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 14 Dec 2009 Link to this post

    If you are binding the control you can always set this change to happen automatically through the aspx declaration. You could also set up some custom logic in the transferring event and save the transferred events in session or something like that. The best solution would be to databind this and have a transfer be reflected in whatever the control is bound to.
Back to Top