This is a migrated thread and some comments may be shown as answers.

RadToolbar on WebForm/master Page Site

3 Answers 87 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Colin Wright
Top achievements
Rank 2
Colin Wright asked on 05 May 2008, 08:30 AM
I have a master page site. On one web form I am using rad toolbar. I am using Javascript to try and create a click handler for a spell check.

I am using the <%RadToolBar1.ClientID%> to access the Rad Tool bar. However it does not seem to work. (The toolbar is NOT on the master page)

<telerik:RadCodeBlock ID=rcb2 runat=server>

<script language=javascript>

var toolb = <%=RadToolBar1.ClientID %>;

toolb.attachEvent(

"OnClientClick","click_handler");

function

click_handler(sender, e)

{

if(sender.CommandName == "spell")

{

SpellCheck()

return false;

}

}

</script>

</telerik:RadCodeBlock>

3 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 05 May 2008, 12:37 PM
Hi Colin,

The client-side model of RadToolBar for ASP.NET Ajax is different than that of RadToolBar for ASP.NET "Classic". You need to set the OnClientButtonClicked property to the click_handler function you already have.

Please, check the Client-side Events page, you might find the information there helpful.

Best regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Henry
Top achievements
Rank 1
answered on 20 May 2011, 03:48 PM
In addition, The RadToolbar does not work when an iframe is on the page. 
0
Kate
Telerik team
answered on 25 May 2011, 12:26 PM
Hello Wiliam,

I tested the scenario but it seems that the RadToolbar works properly when I put an iframe on the page. I have attached a sample page that demonstrates how it works. Please make sure that you close the iframe tag properly as described in the following forum post

Kind regards,
Kate
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ToolBar
Asked by
Colin Wright
Top achievements
Rank 2
Answers by
Erjan Gavalji
Telerik team
Henry
Top achievements
Rank 1
Kate
Telerik team
Share this question
or