Telerik blogs
  • Web ASP.NET AJAX

    Migrating OnClientClick handlers from ASP button to Telerik’s ASP.NET AJAX Button

    Let’s start with some background – a common need is for a button to execute some JavaScript code in order to create a more responsive page. With the standard ASP:Button the OnClientClick is used to specify this execution statement. Take the following simple example: <script type="text/javascript">     function ButtonClick(button) {         alert("The Button with ID " + button.id + " was clicked.");     } </script> <asp:Button ID="Button1" Text="Regular Button" OnClientClick="ButtonClick(this); return false;" runat="server" />   What you can see here is a function called with parentheses, an argument provided to the function and the return false; statement that prevents the postback. The case with Telerik’s ASP.NET AJAX Button is slightly different, however. It follows the convention all other Telerik ASP.NET AJAX...
    August 10, 2012
  • Web ASP.NET AJAX

    How to set a custom height for RadButton and RadFormDecorated buttons in ASP.NET AJAX

    Lately we’ve been receiving one question quite often - is it possible to increase the RadButton and / or RadFormDecorator’s button default height. Usually people are trying to set the needed value to the Height property: <telerik:RadFormDecorator runat="server" DecoratedControls="All" /> <asp:Button runat="server" Text="RadForm Button" Height="40" /> <telerik:RadButton runat="server" Text="RadButton" Height="40"> </telerik:RadButton>   But the result is not pretty:      By default the RadButton as well as ASP Buttons and inputs of type=”button” decorated by the RadFormDecorator are visually built with sprite images that apply a specific gradient to the element. The sprite image has a specific height, which means you cannot just change the button’s height property because the sprite image will be either cut off or...
    April 23, 2012
  • Release

    First Look at RadButton for ASP.NET AJAX!

    We will extend our ASP.NET AJAX suite in Q3 2010 with a new control. The component is called RadButton -a fully customizable button control that allows you to build complex forms and easily manage the user input. The standard ASP.NET button controls (Button, RadioButton, CheckBox) can be easily replaced by the RadButton control, since most of their functionality is provided by our control, and is configured by the same or similar(intuitive) properties. On top of that we offer many additional features. Here are some of RadButton's key features: Rich client-side functionality - Many of the server properties are exposed on the client,...
    October 26, 2010