Welcome Guest Search | Active Topics | Sign In | Register

Toolbar Item Click Event Options
Frank
Posted: Sunday, May 4, 2008 8:57:43 PM
Rank: Member
Groups: Member

Joined: 5/2/2008
Posts: 16
Hello.
If I understood correctly, we use OnToolbarItemClick event to trigger a client-side script (JavaScript). Then, according to the button that was clicked, we redirect the code to the appropriate logic.

Question 1: Is there a way to fire an event that would trigger a C# function instead?
Question 1.1: If not, how could my JavaScript function call a C# function in my code behind?

The difficulty will be to go from client to server side but there must be some workaround.
Any idea?

Question 2: in the Properties of the Toolbar control (not EO's but VS's properties) there is a server side ItemClick event. Can this one be used and could anyone give me an example?

Thanks,

Frank


eo_support
Posted: Sunday, May 4, 2008 9:06:56 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,091
Hi,

You need to set the ToolBar's AutoPostBack to true. That way the toolbar will call your server side ItemClick event directly.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.