Re: Expand and collapse detail editing

Efran Cobisi <[email protected]> Wed, 7 Nov 2007 10:44:15 +0100
Newsgroups gmane.comp.windows.devel.dotnet.web
Organization cobisi.com
Message-ID <[email protected]>
Hi Brady,

If your editing requirements encompass complex logic that couldn't
easily avoid postbacks, I would recommend replacing the Repeater with
something else, like the DataList control. In fact, while the former
does not automatically persist any information about its children
collection structure, the latter does it, allowing for complex editing
scenarios where postbacks are required.

HTH

--
Efran Cobisi
http://www.cobisi.com

Brady Kelly wrote:
> I have a Repeater control that hosts simple User List rows of system users.
> Each row has an Edit icon, which the user clicks to open a User Details edit
> page.  I have been told to remove the separate details page, and create a
> detail edit section that expands or collapses on demand, without leaving the
> base User List page.  How do I go about this?
>
>
>
> My first idea is to include an edit control on the item template of the
> Repeater, and simply use styling to hide the edit control until the edit
> icon is clicked.  Then I set the display to a visible, and the edit control
> handles all the edit functionality itself.  Is this the correct approach,
> how could I improve on this, and what pitfalls await me?
>
>
> ===================================
> This list is hosted by DevelopMentor®  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com