Multiple instances of Reorder List in a page...

Last post 12-30-2006 7:05 AM by MartinSmithh. 1 replies.

Sort Posts:

  • Multiple instances of Reorder List in a page...

    12-29-2006, 4:23 PM
    • Member
      393 point Member
    • MartinSmithh
    • Member since 09-07-2005, 10:16 AM
    • Posts 104

    I have a page with 2 reorder list controls.

     The InsertItemTemplate template isn't showing on the second of these.

     When I look at the source I see that there are lots of times where ViewState is being used without identifying the control.

    e.g. ViewState["ItemInsertLocation"]

    so I'm presuming that the first control may be doing something to these global values that interferes with the second one.

    I'll probably end up putting the second control on a separate page in an IFrame but thought I'd point it out as it seems to limit it's usefulness quite significantly.

  • Re: Multiple instances of Reorder List in a page...

    12-30-2006, 7:05 AM
    • Member
      393 point Member
    • MartinSmithh
    • Member since 09-07-2005, 10:16 AM
    • Posts 104
    Actually it turned out that the reason my control was not showing the InsertItemTemplate was that I was binding it to a null List<T> I didn't realise it needed to be initialised as an empty List in order for the template to show. I think my above comment would still stand though if I wanted different options for the 2 controls.
Page 1 of 1 (2 items)