Telerik blogs
  • Web

    Executing JavaScript function from server-side code

    This is a pretty common scenario when working with WebForms. There are many ways to achieve the desired result, but they have one thing in common – you should make sure that the controls are fully loaded in the page before trying to get a reference to them and use them in your JavaScript code. In ASP.NET it is pretty straightforward to do that. For example you could use a label: ASPX <head runat="server">     <title>Untitled Page</title>     <script type="text/javascript">     function calledFn()     {         alert("code fired");      }     </script> </head> <body>     <form id="form1" runat="server">         <asp:Button ID="Button1" runat="server" Text="Run JavaScript Code" OnClick="Button1_Click" />         <asp:Label ID="Label1" runat="server"></asp:Label>    ...
  • Web ASP.NET AJAX

    XML Syntax Rules

    All XML Elements Must Have a Closing Tag In HTML, you will often see elements that don't have a closing tag:  <p>This is a paragraph  <p>This is another paragraph    In XML, it is illegal to omit the closing tag. All elements must have a closing tag: <p>This is a paragraph</p>  <p>This is another paragraph</p>        Note: You might have noticed from the previous example that the XML declaration did not have a closing tag. This is not an error. The declaration is not a part of the XML document itself, and it has no closing tag. XML Tags are Case Sensitive XML elements are defined using XML tags. XML tags are case sensitive. With XML, the tag <Letter> is different from the...
    April 03, 2009
  • Release

    Two New RadTips Episodes Featuring the RadGrid for ASP.NET AJAX

    I’m happy to announce two new episode of RadTips, a series of screencasts offering tips and tricks for using Telerik's RadControls. If you've missed previous episodes, be sure to check them out on Telerik TV. Each is only a few minutes long and covers a specific feature of the RadControls. Grouping with the RadGrid In this episode I show ASP.NET AJAX developers how to using the built-in grouping feature of the RadGrid. I start by demonstrating how you can enable dynamic grouping by setting just a couple of properties, allowing users to group data at runtime. Next I demonstrate how to...
    March 26, 2009
  • Web

    Client - side events in JavaScript

    Below is a table of the most common client side events in JavaScript. The Table is divided into three columns – the first lists the name of the event. The second contains a short description of the event, and the third lists all page objects, which support the given event.                                          Event Name                Description  Supported by objects  onabort The onabort event occurs when loading of an image is aborted. image onblur The onblur event occurs when an object loses...
    February 27, 2009
  • Productivity

    OpenAccess, WCF, and a RadGrid (Oh My!)

    I’ve been working on a project that uses OpenAccess ORM as the persistence layer between my app and the database. Since the app is going to be used on both web and client platforms I wanted to add a services layer to serve up the data. Turns out it’s pretty easy to do. So I’ll walk you through a quick demo of how to hook OpenAccess up to WCF services and then consume the data with a RadGrid. Set up the project structure First, create a class library project called Data to hold the data access code. This is where you’ll use OpenAccess to...
    February 14, 2009