Accordion panel onclick event

  • Thread starter Thread starter John Graham
  • Start date Start date
J

John Graham

I have a form where I separate several of the sections with the use of
an accordion. Because of the requirements I have, I need the form to
be saved every time the user clicks on a different pane of the
accordion. I am not able to find an event I can use to do this. Any
suggestions would be appreciated.
 
Hi,

There is a trick, place a link on your accordion header, handle that event
on the server side and save. That's ok but... what if the user click on the
header and not on the link ? Trick two... just set the size of the link
control equals to the whole link or handle the panel/div of the header on the
client side and send a manual postback of the link when that happens.

About manually simulating a linkbutton postback:

http://www.tipsdotnet.com/ArticleDetail.aspx?RSSEntryID=1568&area=net&subarea=ASPnet

Good luck
Braulio

PS.: If you are using accordion and postback don't forget to check on a
real enviroment if that works fine (you could have performance issues).

/// ------------------------------
/// Braulio Diez
///
/// AJAX compilation of articles:
/// http://www.tipsdotnet.com/ArticleBlog.aspx?KWID=2&Area=AJAX&PageIndex=0
/// ------------------------------
 
Back
Top