event-binding

Uses for OnItemDataBound

What would you realistically use OnItemDataBound for on a Repeater ? ...

In jQuery if you remove an element will any events on it be removed?

For example if I have a link with the following event bound to it: $("a.d").bind("click", this, onDelete); And later do: $("a.d").remove(); Is that fine? Or does it cause a memory leak and I need to call unbind 1st? Thanks for any help. ...

jQuery .live("click", fn) works only on second clik

I have a DOM element that is generated with js, and therefore when i want to bind a click event listener i need to use $(generatedEl).live("click", fn...) (is there a different way?) here is the code i am using: $(".toggleView").live("click", function(){ if(isTrunced){ $(this).htm...

How do I bind an event to the left mouse button being held down?

I need a command to be executed as long as the left mouse button is being held down. ...

MVVM WPF: Reflecting a controls property to the viewmodel, when an events get triggered.

Okay i'm trying to understand WPF and the popular MVVM Pattern. Now i have this issue. I'm using a ribbon control with several tabs. In my ViewModel i have a property "ActiveTab (string)" Which should reflect the currently active tab. Since ribboncontrol doesn't have any property that shows this information i can't bind to it. So i wa...