Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Datalist multiple edit modes for edititemtemplate

Thread Tools

Datalist multiple edit modes for edititemtemplate

Steve P
Posts: n/a
I want to have 2 ways of editing my datalist results:
1) regular edit (i.e. the literal text is replaces with a textbox when
"Inline Edit" is clicked
2) full edit: the fields are displayed in a form layout that is more
readable when "Full Edit" is clicked

I have edititemtemplates for both, however, only one is allowed to be used
per datalist. Also I have extracttemplaterows=true in the datalist in order
to make it easy to format the datalist table. A method I tried was to place
2 tables within the edititemtemplate (one for each edit mode), and then in
the itemdatabound event I would set the appropriate table's visibility based
on the button clicked. This did not work because all properties of the table
within the edititemtemplate are discarded on databinding when
extracttemplaterows=true for the datalist. Is there a way (other than
setting extracttemplaterows=false) to have multiple edit modes in the way I
describe? (I know that I could basically "misuse" the selecteditemtemplate
and make it the second editmode instead, but the problem there is that I also
want a separate selecteditemtemplate. Your help is appreciated!

Thank you
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Snapshot restraint - edit, edit, edit Alan Browne Digital Photography 24 05-10-2005 10:15 PM
Snapshot restraint - edit, edit, edit Patrick Digital Photography 0 05-06-2005 10:53 PM
Entering DataList EditItemTemplate from Outside of the DataList Luis Esteban Valencia ASP .Net 1 01-06-2005 07:32 PM
how do i access a dropdownlists selected value in a datagrid edititemtemplate column from the selectedindexchanged event of another dropdownlist in a datagrid edititemtemplate column Dave M ASP .Net Datagrid Control 0 12-14-2004 11:53 AM
pattern for ascx control with edit and view modes Martin ASP .Net 2 09-29-2004 08:24 PM