Hi All,
New to these controls so please forgive my igmnorance - I have come from an Infragistics background. I wanted to create a simple page with 3 large buttons which when clicked would take you to the appropriate web page. Easy I thought!
I declare my button as :-
<telerik:RadButton ID="btnTeamData" runat="server" Text="Team Data" Height="70px" Width="250px" Font-Size="18px" Icon-PrimaryIconUrl="~/Images/indycar_48.png"
Icon-PrimaryIconWidth="48" Icon-PrimaryIconHeight="48" AutoPostBack="False" Icon-PrimaryIconTop="10"
OnClientClicked="btnTeamView_OnClientClicked"
ToolTip="combined data recovered from the Teams">
</telerik:RadButton>
...and I have a javascript function at the top of the page
<script type="text/javascript" language="javascript">
function btnTeamView_OnClientClicked()
{
alert('Team View');
document.location.href = './teamview.aspx';
}
</script>
...what's odd is that as soon as the page loads I get the alert and the page tries to jump off to the specified new page. I haven't clicked the button so why is it calling the OnClientClicked event? How do I get this to work as I would expect?
Thanks
New to these controls so please forgive my igmnorance - I have come from an Infragistics background. I wanted to create a simple page with 3 large buttons which when clicked would take you to the appropriate web page. Easy I thought!
I declare my button as :-
<telerik:RadButton ID="btnTeamData" runat="server" Text="Team Data" Height="70px" Width="250px" Font-Size="18px" Icon-PrimaryIconUrl="~/Images/indycar_48.png"
Icon-PrimaryIconWidth="48" Icon-PrimaryIconHeight="48" AutoPostBack="False" Icon-PrimaryIconTop="10"
OnClientClicked="btnTeamView_OnClientClicked"
ToolTip="combined data recovered from the Teams">
</telerik:RadButton>
...and I have a javascript function at the top of the page
<script type="text/javascript" language="javascript">
function btnTeamView_OnClientClicked()
{
alert('Team View');
document.location.href = './teamview.aspx';
}
</script>
...what's odd is that as soon as the page loads I get the alert and the page tries to jump off to the specified new page. I haven't clicked the button so why is it calling the OnClientClicked event? How do I get this to work as I would expect?
Thanks