Accordian that's data bound and OnItemCommand fails to call an event

Last post 03-27-2007 11:25 AM by lewisbass. 2 replies.

Sort Posts:

  • Accordian that's data bound and OnItemCommand fails to call an event

    03-16-2007, 7:19 PM

     Has anyone had success getting the OnItemCommand to work for them with a button inside of a data bound accordion control where the button is inside of the Header template or the Content template?

    I have an accordion control on my page that's been data bound and when I have the OnItemCommand set to an event, this should raise a postback that calls an the function that the OnItemCommand is set to whenever something like a button inside of the data bound accordian is clicked. It doesn't call the OnItemCommand event though. I've placed multiple buttons inside the control that should cause an event to be fired on postback but none of them cause the OnItemCommand to be triggered. Does anyone know why this doesn't work in the accordion control?


     

  • Re: Accordian that's data bound and OnItemCommand fails to call an event

    03-20-2007, 9:23 AM

    Have you tried removing the AutoSize attribute from the declaration?

     

    I've got it posting back but the page handlers only seem to pick up the events on the second attempt at a postback! Not hugely useful in a real life situation ..

     

    Anyone got an answer/workaround? 

     

     

     


    Filed under: ,
  • Re: Accordian that's data bound and OnItemCommand fails to call an event

    03-27-2007, 11:25 AM
    • Loading...
    • lewisbass
    • Joined on 03-14-2007, 11:37 AM
    • Posts 1

    I am having a similar problem - did you ever get it to work?

     If you did then can you share the solution with me, because I am trying to do the same thing

Page 1 of 1 (3 items)
Microsoft Communities
Page view counter