Datalist multiple edit modes for edititemtemplate

S

Steve P

Hi,
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
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top