Login  
Search All Forums
Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
AuthorForum: PowerWEB LiveControls for ASP.NET
Topic: Button event in repeater not firing
oliver0303

From: Hjørring, Denmark
Posts: 58
Member Since: 04/15/05
posted May 19, 2005 6:12 AM

I have placed a repeater within a live placeholder, and added a live button to the repeater, but the button click event on the button is not caught. Does Dart have any examples of this ?

The ItemCommand event on the repeater is also never caught

Thanks,
Oliver
oliver0303

From: Hjørring, Denmark
Posts: 58
Member Since: 04/15/05
posted May 19, 2005 6:32 AM

Never mind, it was something in my code.
oliver0303

From: Hjørring, Denmark
Posts: 58
Member Since: 04/15/05
posted May 19, 2005 6:44 AM

Grrrrrr, new problems. The event IS firing if the repeater is NOT placed within a placeholder, but if it not placed within a placeholder i cannot modify the repeater as i understand it. Could someone at Dart please post an example where a button event is caught when placed in a repeater which again is placed within a placeholder. This palceholder is important, as i need to bind the repeater on livetimer tick events.
oliver0303

From: Hjørring, Denmark
Posts: 58
Member Since: 04/15/05
posted May 19, 2005 6:45 AM

Live placeholder and live button that is.
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted May 19, 2005 5:52 PM

One quick question. What happens if you use a LivePanel instead of a LivePlaceholder?
oliver0303

From: Hjørring, Denmark
Posts: 58
Member Since: 04/15/05
posted May 20, 2005 3:00 AM

Same thing happens. Removing the LivePanel and the ItemCommand event on the repeater is caught. But i do need some "live" around the repeater, as i need to bind it on livetimer tick events.
oliver0303

From: Hjørring, Denmark
Posts: 58
Member Since: 04/15/05
posted May 20, 2005 8:54 AM

Could someone from Dart please look into this, today as i have a major release on monday and would like to work on this during the weekend. Thanks..
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted May 20, 2005 11:37 AM

Looks like the Repeater is failing to reload it's state. I can get your example to work if I set EnableViewState=false on the Repeater and rebind the Repeater data with each request.
oliver0303

From: Hjørring, Denmark
Posts: 58
Member Since: 04/15/05
posted May 21, 2005 6:51 AM

Thanks Jeff !!
oliver0303

From: Hjørring, Denmark
Posts: 58
Member Since: 04/15/05
posted May 21, 2005 7:33 AM

This will just not work !! Binding on every request seems fine at first, but now on a liveimagebutton click, fires the ItemCommand event 3 times with 2 rows in the repeater. Placing a normal livebutton in the repeater fires the ItemCommand event only one time as it should do.
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted May 21, 2005 8:46 AM

Looks like there are some interop issues between LiveControls and the Repeater.

I got it to work if I used the Repeater.ItemCreated event to wire up the LiveButton.Click event and set the CommandArgument to the ItemIndex. See my sample project at:

http://support.dart.com/downloads/repeatertest.zip
oliver0303

From: Hjørring, Denmark
Posts: 58
Member Since: 04/15/05
posted May 21, 2005 9:05 AM

Thank you for taking the time Jeff. After calming down a bit, i realized that i had other options. Not i have replace the liveimage button with a liveimage, and the added a custom call back event to that image, and now everything works like it should.

Fantastic product you have here...
Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX