Re: Expand and collapse detail editing

Brady Kelly <[email protected]> Wed, 7 Nov 2007 12:06:22 +0200
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <[email protected]>
Efran, thanks for the pointer, I am already looking at the DataList for
future requirements, but the moment I require no actual postbacks for
editing.  All my persistence is through home-brewed Ajax calls, with the
page class only performing the initial population of controls.

> -----Original Message-----
> From: Discussion of building .NET applications targeted for the Web
> [mailto:[email protected]] On Behalf Of Efran Cobisi
> Sent: 07 November 2007 11:44 AM
> To: [email protected]
> Subject: Re: [DOTNET-WEB] Expand and collapse detail editing
>
> 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 DevelopMentorR  http://www.develop.com
> >
> > View archives and manage your subscription(s) at
> http://discuss.develop.com
> >
>
> ===================================
> This list is hosted by DevelopMentorR  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