about client-side events

Jun 16, 2009 at 1:16 AM

Hi:

i want to use toolbar client-side event:
==============================================
OnClientButtonClick="toolbar_buttonClicked"


===========================================

but it con't work??? help me !!

thanks!!

best regards!

janwa




????????????????????????
Coordinator
Jan 20, 2010 at 7:02 PM
Edited Jan 20, 2010 at 7:07 PM

I believe that is a bug.  For now, you can use the "add_buttonClicked" in your client script to wire the event. Something like this:

var toolbar = $find(ID);
toolbar.add_buttonClicked(handler);

function handler(sender, args) {

    // add custom code here
}

Coordinator
Jun 22, 2011 at 1:40 AM

I checked in the code that fixes the problem. Get latest from the Source Control tab.