We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

toolbar button question

Thread ID:

Created:

Updated:

Platform:

Replies:

68233 Sep 12,2007 11:43 PM UTC Sep 25,2007 03:22 PM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: Tools
Stephanie Gibbs
Asked On September 12, 2007 11:43 PM UTC

Is there a way to make a toolbar button call javascript or pop up a new window with the URL?

Thanks!

Suresh Sekarean [Syncfusion]
Replied On September 25, 2007 03:22 PM UTC

Hi Stephanie,

Client side java script routines can be executed using the property "ClientSideOnItemSelect" of an ToolBar Item. Please refer the below code snippet.

[C#]

ToolBar1.ClientSideOnItemSelect = "OnItemSelect()";

[Client JScript]



Also page navigation can be done on Item select using navigate URL property of ToolBarItem.

[C#]

ToolBarItem1.NavigateUrl = "http://www.syncfusion.com";

//Set control Target to '_blank' to navigate the page in new window. '_self' -Navigate in the same //window. 'Frame_name' -Navigate to the particular frame.
ToolBar1.Target = "_blank";

Please let us know if you need more info.

Regards,
Sureshsekaran.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;