ReorderList Control Resets

Last post 08-17-2006 6:01 PM by sburke_msft. 2 replies.

Sort Posts:

  • ReorderList Control Resets

    08-16-2006, 3:26 PM
    • Member
      133 point Member
    • GremlinX
    • Member since 03-07-2006, 7:20 PM
    • Canada
    • Posts 35
    I have a ReorderList control that I am trying to get to work.  I populate it by binding to a DataTable.  If I only bind when !isPostBack then when I click the "save" button all the items in the ReorderList disappear.  If I bind on Page_Load every time (postback or not) then when I click the "save" button all the items get reset to default.  How do I save the state of the items in the list back to the database?  I must be doing something wrong, but I can't figure out what.

    Thanks for your help!
    Binary Fortress Software
    http://www.binaryfortress.com
  • Re: ReorderList Control Resets

    08-17-2006, 11:57 AM
    • Member
      133 point Member
    • GremlinX
    • Member since 03-07-2006, 7:20 PM
    • Canada
    • Posts 35
    Just a quick update... this post by Rick Strahl talks about the same problem that I am experiencing:
    http://west-wind.com/weblog/posts/6760.aspx
    It would be useful to have it be able to use a "postback" mode instead of "callback", or maybe I'm just missing something still.  How do I keep the client and server in "sync" with the same items list?

    Thanks


    Binary Fortress Software
    http://www.binaryfortress.com
  • Re: ReorderList Control Resets

    08-17-2006, 6:01 PM
    • Contributor
      4,346 point Contributor
    • sburke_msft
    • Member since 04-04-2006, 3:28 PM
    • Redmond, WA
    • Posts 770
    • AspNetTeam
    Rick's post was before our July 31 release.  We made several changes in response to his suggestions that, at least, got his scenario working properly.  The sync issue was a bug in the ReorderList code - the test was just to bind it to a List<string>.
    Don't forget, this posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (3 items)