ReorderList [BUG]

Last post 10-25-2007 11:24 AM by pbrady1970. 6 replies.

Sort Posts:

  • ReorderList [BUG]

    04-24-2006, 11:40 AM
    • Member
      100 point Member
    • Manuel
    • Member since 03-03-2006, 8:33 AM
    • Posts 20

    If you place a linkbutton with a CommandName "Edit" or "Delete" the following exception is thrown:

    Item type isn't valid for Add items.

    The error is thrown because all items are marked as _isAddItem = true (note that in the ReorderListItem constructor there's a _isAddItem = false commented).

  • Re: ReorderList [BUG]

    04-24-2006, 3:20 PM
    • Star
      8,710 point Star
    • David Anson
    • Member since 04-11-2006, 1:39 AM
    • Microsoft
    • Posts 1,842
    • AspNetTeam
    Thanks for the report, I've added a note to our list of things to investigate!

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: ReorderList [BUG]

    10-11-2006, 4:11 PM
    • Member
      5 point Member
    • Richard_Jin
    • Member since 10-11-2006, 8:03 PM
    • Posts 1

    If add a checkbox in reorderlist, first check(or uncheck) it, and then drag this line. the checkbox will lost the state.

    Add the label or Textbox can work.

  • Re: ReorderList [BUG]

    10-24-2006, 11:32 PM
    • Contributor
      4,198 point Contributor
    • Ted Glaza [MSFT]
    • Member since 04-12-2006, 11:51 PM
    • Microsoft
    • Posts 847
    • AspNetTeam
    Hi Richard_Jin,

    Could you please file a bug in our CodePlex issue tracker?  We really appreciate all the help finding issues.

    Thanks,
    Ted
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: ReorderList [BUG] (with checkboxes)

    04-06-2007, 1:27 PM
    • Member
      6 point Member
    • Jeremy92
    • Member since 03-07-2007, 6:25 PM
    • Posts 4

    This is still the case with the 1.0 Ajax Release of the Reorderlist control.  The hack around it is to enable postback on the checkbox and have code that writes the value to the database.  I put an update panel on it but it's still an ugly way of doing it.

     So this issue is still not resolved as two-way binding with a checkbox in the itemtemplate is not possible.

     The other hack is to put checkboxes in the edit template, but again, you get really ugly because you have to put EDIT command buttons on each row to get to the edit template.

     



     

    Filed under:
  • Re: ReorderList [BUG] (with checkboxes)

    04-06-2007, 1:38 PM
    • Member
      6 point Member
    • Jeremy92
    • Member since 03-07-2007, 6:25 PM
    • Posts 4
    Jeremy92:

    This is still the case with the 1.0 Ajax Release of the Reorderlist control.  The hack around it is to enable postback on the checkbox and have code that writes the value to the database.  I put an update panel on it but it's still an ugly way of doing it.

     So this issue is still not resolved as two-way binding with a checkbox in the itemtemplate is not possible.

     The other hack is to put checkboxes in the edit template, but again, you get really ugly because you have to put EDIT command buttons on each row to get to the edit template.

    Well you don't have to add much code if you two-way bind the checkbox control with your business object and associate the reorderlist with an objectdatasource.  But still you have an ugly postback.

     All of this could be avoided if the Reorderlist would correctly bind to a in-memory object like a IList or a DataTable.  As of Ajax 1.0, there's some really wierd state problems that occur if you don't
    let the ReorderList write its updates to a database similar to how the demonstration does it.  

    As long as the ReorderList writes an Update to a db EVERY time you drag-drop a row, it works great.

    I'm not sure, but I think the ReorderList has some unexpected behavior with the ViewState and postbacks.


     

  • Re: ReorderList [BUG]

    10-25-2007, 11:24 AM
    • Member
      2 point Member
    • pbrady1970
    • Member since 10-24-2007, 4:47 AM
    • Posts 2

     Do you know if this bug has been fixed or is there a workaround?

     

     If add a checkbox in reorderlist, first check(or uncheck) it, and then drag this line. the checkbox will lost the state.

Page 1 of 1 (7 items)